- client: enforce <no_gpus> in config file not just at startup,

but also when config file is re-read.


svn path=/trunk/boinc/; revision=25600
This commit is contained in:
David Anderson 2012-04-25 18:14:28 +00:00
parent 813470f08d
commit db44fa1371
2 changed files with 9 additions and 1 deletions

View File

@ -3537,7 +3537,7 @@ David 25 Apr 2012
if (*pbuf == NULL)
not
if (pbuf == NULL)
- various code cleanups from
- various code cleanups
- Makefile.am: don't include clientgui/res; nothing to make there
from Steffen Moeller
@ -3551,3 +3551,10 @@ David 25 Apr 2012
client/
coproc_detect.cpp
client_types.cpp
David 26 Apr 2012
- client: enforce <no_gpus> in config file not just at startup,
but also when config file is re-read.
client/
log_flags.cpp

View File

@ -562,6 +562,7 @@ void process_gpu_exclusions() {
}
bool gpu_excluded(APP* app, COPROC& cp, int ind) {
if (config.no_gpus) return true;
PROJECT* p = app->project;
for (unsigned int i=0; i<config.exclude_gpus.size(); i++) {
EXCLUDE_GPU& eg = config.exclude_gpus[i];