mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=19796
This commit is contained in:
parent
95579e7ebe
commit
5ff3c7e4c9
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "boinc_win.h"
|
#include "boinc_win.h"
|
||||||
|
#include "win_util.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -193,12 +194,13 @@ bool gpus_usable = true;
|
||||||
bool check_coprocs_usable() {
|
bool check_coprocs_usable() {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
bool new_usable = !is_remote_desktop();
|
||||||
if (gpus_usable) {
|
if (gpus_usable) {
|
||||||
if (!new_usable) {
|
if (!new_usable) {
|
||||||
gpus_usable = false;
|
gpus_usable = false;
|
||||||
for (i=0; i<gstate.results.size(); i++) {
|
for (i=0; i<gstate.results.size(); i++) {
|
||||||
RESULT* rp = gstate.results[i];
|
RESULT* rp = gstate.results[i];
|
||||||
if (avp->ncudas || rp->avp->natis) {
|
if (rp->avp->ncudas || rp->avp->natis) {
|
||||||
rp->coproc_missing = true;
|
rp->coproc_missing = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -307,6 +307,7 @@ extern bool dcf_stats;
|
||||||
extern bool cpu_sched_rr_only;
|
extern bool cpu_sched_rr_only;
|
||||||
extern bool dual_dcf;
|
extern bool dual_dcf;
|
||||||
extern bool work_fetch_old;
|
extern bool work_fetch_old;
|
||||||
|
extern bool gpus_usable;
|
||||||
|
|
||||||
#define WORK_FETCH_PERIOD 60
|
#define WORK_FETCH_PERIOD 60
|
||||||
|
|
||||||
|
|
|
@ -1046,6 +1046,10 @@
|
||||||
RelativePath="..\Client\client_types.cpp"
|
RelativePath="..\Client\client_types.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\client\coproc_detect.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\client\cpu_sched.cpp"
|
RelativePath="..\client\cpu_sched.cpp"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue