- win build fix

svn path=/trunk/boinc/; revision=20314
This commit is contained in:
David Anderson 2010-01-29 15:28:59 +00:00
parent 41d2a3e6aa
commit 902225c49a
2 changed files with 5 additions and 5 deletions

View File

@ -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");

View File

@ -1066,10 +1066,6 @@
RelativePath="..\client\time_stats.cpp"
>
</File>
<File
RelativePath="..\lib\win_util.cpp"
>
</File>
<File
RelativePath="..\client\work_fetch.cpp"
>