svn path=/trunk/boinc/; revision=19796

This commit is contained in:
David Anderson 2009-12-07 00:53:32 +00:00
parent 95579e7ebe
commit 5ff3c7e4c9
3 changed files with 8 additions and 1 deletions

View File

@ -37,6 +37,7 @@
#ifdef _WIN32
#include "boinc_win.h"
#include "win_util.h"
#endif
#include <string>
@ -193,12 +194,13 @@ bool gpus_usable = true;
bool check_coprocs_usable() {
#ifdef _WIN32
unsigned int i;
bool new_usable = !is_remote_desktop();
if (gpus_usable) {
if (!new_usable) {
gpus_usable = false;
for (i=0; i<gstate.results.size(); i++) {
RESULT* rp = gstate.results[i];
if (avp->ncudas || rp->avp->natis) {
if (rp->avp->ncudas || rp->avp->natis) {
rp->coproc_missing = true;
}
}

View File

@ -307,6 +307,7 @@ extern bool dcf_stats;
extern bool cpu_sched_rr_only;
extern bool dual_dcf;
extern bool work_fetch_old;
extern bool gpus_usable;
#define WORK_FETCH_PERIOD 60

View File

@ -1046,6 +1046,10 @@
RelativePath="..\Client\client_types.cpp"
>
</File>
<File
RelativePath="..\client\coproc_detect.cpp"
>
</File>
<File
RelativePath="..\client\cpu_sched.cpp"
>