From 57a41e14d9ec118ccc55d5cc40e8fc6ce5ae7f59 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 25 May 2011 18:37:08 +0000 Subject: [PATCH] - client: if 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 --- checkin_notes | 8 ++++++++ client/cpu_sched.cpp | 1 + 2 files changed, 9 insertions(+) diff --git a/checkin_notes b/checkin_notes index 840084ca0b..49b600a0d9 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3153,3 +3153,11 @@ David 25 May 2011 parse.cpp,h client/ app_control.cpp + +David 25 May 2011 + - client: if 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 diff --git a/client/cpu_sched.cpp b/client/cpu_sched.cpp index a81cd8afe1..ef264fcd2f 100644 --- a/client/cpu_sched.cpp +++ b/client/cpu_sched.cpp @@ -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 {