diff --git a/checkin_notes b/checkin_notes index fcbc1f6f34..cf9c5ce487 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6953,3 +6953,9 @@ David 17 Aug 2009 sched_send.cpp sched_types.cpp,h sched_version.cpp + +David 17 Aug 2009 + - client: fix calculation of ATI flops + + lib/ + coproc.cpp,h diff --git a/lib/coproc.cpp b/lib/coproc.cpp index e4195e55bd..ccfa94a9d2 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -781,6 +781,6 @@ int COPROC_ATI::parse(FILE* fin) { void COPROC_ATI::description(char* buf) { sprintf(buf, "%s (CAL version %s, %.0fMB, %.0fGFLOPS)", - name, version, attribs.localRAM/1024.*1024., flops() + name, version, attribs.localRAM/1024.*1024., flops()/1.e9 ); } diff --git a/lib/coproc.h b/lib/coproc.h index 5e237eda63..788684059f 100644 --- a/lib/coproc.h +++ b/lib/coproc.h @@ -260,7 +260,8 @@ struct COPROC_ATI : public COPROC { void clear(); int parse(FILE*); inline double flops() { - return attribs.numberOfSIMD * attribs.wavefrontSize * 5/2 * attribs.engineClock; + return attribs.numberOfSIMD * attribs.wavefrontSize * 2.5 * attribs.engineClock * 1.e6; + // clock is in MHz } };