- client: fix bug in ATI GPU detection, caused zero RAM measurements

svn path=/trunk/boinc/; revision=24251
This commit is contained in:
David Anderson 2011-09-21 22:25:08 +00:00
parent 9d2ba11e09
commit 9a7d25966c
2 changed files with 14 additions and 4 deletions

View File

@ -6299,7 +6299,7 @@ David 21 Sept 2011
- deprecate/undeprecate versions of the app.
- abort jobs for that app
You can also designate a user a manage for the project.
You can also designate a user as manager for the project.
They can then edit permissions and quotas,
as well as performing the app-specific functions for all apps.
@ -6328,3 +6328,9 @@ David 21 Sept 2011
submit.php
py/Boinc/
setup_project.py
David 21 Sept 2011
- client: fix bug in ATI GPU detection, caused zero RAM measurements
client/
coproc_detect.cpp

View File

@ -1368,12 +1368,11 @@ void COPROC_ATI::get(
cc.atirt_detected = atirt_detected;
cc.device_num = i;
cc.set_peak_flops();
cc.get_available_ram();
gpus.push_back(cc);
}
get_available_ram();
// shut down, otherwise Lenovo won't be able to switch to low-power GPU
// shut down CAL, otherwise Lenovo won't be able to switch to low-power GPU
//
retval = (*__calShutdown)();
@ -1382,6 +1381,8 @@ void COPROC_ATI::get(
return;
}
// find the most capable non-ignored instance
//
bool first = true;
unsigned int i;
for (i=0; i<gpus.size(); i++) {
@ -1394,6 +1395,9 @@ void COPROC_ATI::get(
}
}
// see which other instances are equivalent,
// and set the "count" and "device_nums" fields
//
count = 0;
for (i=0; i<gpus.size(); i++) {
char buf2[256];