- client: if <ncpus> is specified in config file,

set host_info.p_ncpus to that value,
		so that scheduler requests report that number of CPUs

svn path=/trunk/boinc/; revision=23608
This commit is contained in:
David Anderson 2011-05-25 18:37:08 +00:00
parent b6e47b0917
commit 57a41e14d9
2 changed files with 9 additions and 0 deletions

View File

@ -3153,3 +3153,11 @@ David 25 May 2011
parse.cpp,h
client/
app_control.cpp
David 25 May 2011
- client: if <ncpus> is specified in config file,
set host_info.p_ncpus to that value,
so that scheduler requests report that number of CPUs
client/
cpu_sched.cpp

View File

@ -2003,6 +2003,7 @@ void CLIENT_STATE::set_ncpus() {
if (config.ncpus>0) {
ncpus = config.ncpus;
host_info.p_ncpus = ncpus;
} else if (host_info.p_ncpus>0) {
ncpus = host_info.p_ncpus;
} else {