- client: fix calculation of ATI flops

svn path=/trunk/boinc/; revision=18852
This commit is contained in:
David Anderson 2009-08-17 17:27:06 +00:00
parent 7278ab1787
commit 152ee20b17
3 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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
);
}

View File

@ -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
}
};