From 902225c49a2f4b38968a64322a8dbc21d70510d1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 29 Jan 2010 15:28:59 +0000 Subject: [PATCH] - win build fix svn path=/trunk/boinc/; revision=20314 --- client/cpu_sched.cpp | 6 +++++- win_build/sim.vcproj | 4 ---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/cpu_sched.cpp b/client/cpu_sched.cpp index 24b6626ee2..7175562a08 100644 --- a/client/cpu_sched.cpp +++ b/client/cpu_sched.cpp @@ -178,10 +178,11 @@ struct PROC_RESOURCES { } }; +bool gpus_usable = true; +#ifndef SIM // see whether there's been a change in coproc usability; // if so set or clear "coproc_missing" flags and return true. // -bool gpus_usable = true; bool check_coprocs_usable() { #ifdef _WIN32 unsigned int i; @@ -218,6 +219,7 @@ bool check_coprocs_usable() { #endif return false; } +#endif // return true if the task has finished its time slice // and has checkpointed in last 10 secs @@ -1232,12 +1234,14 @@ bool CLIENT_STATE::enforce_schedule() { last_time = now; bool action = false; +#ifndef SIM // check whether GPUs are usable // if (check_coprocs_usable()) { request_schedule_cpus("GPU usability change"); return true; } +#endif if (log_flags.cpu_sched_debug) { msg_printf(0, MSG_INFO, "[cpu_sched_debug] enforce_schedule(): start"); diff --git a/win_build/sim.vcproj b/win_build/sim.vcproj index 849d2a2491..a4e6722f10 100644 --- a/win_build/sim.vcproj +++ b/win_build/sim.vcproj @@ -1066,10 +1066,6 @@ RelativePath="..\client\time_stats.cpp" > - -