- client: show <cpu_sched> message when suspend/resume GPU activity

svn path=/trunk/boinc/; revision=19957
This commit is contained in:
David Anderson 2009-12-17 18:09:23 +00:00
parent 73890c2265
commit e82e491c31
2 changed files with 15 additions and 0 deletions

View File

@ -10209,3 +10209,9 @@ Charlie 17 Dec 2009
client/ client/
coproc_detect.cpp coproc_detect.cpp
David 17 Dec 2009
- client: show <cpu_sched> message when suspend/resume GPU activity
client/
cs_prefs.cpp

View File

@ -144,6 +144,7 @@ int CLIENT_STATE::check_suspend_processing() {
} }
} }
bool old_gpu_suspended = gpu_suspended;
gpu_suspended = false; gpu_suspended = false;
switch (gpu_mode.get_current()) { switch (gpu_mode.get_current()) {
case RUN_MODE_ALWAYS: case RUN_MODE_ALWAYS:
@ -162,6 +163,14 @@ int CLIENT_STATE::check_suspend_processing() {
} }
} }
if (log_flags.cpu_sched) {
if (old_gpu_suspended && !gpu_suspended) {
msg_printf(NULL, MSG_INFO, "[cpu_sched] resuming GPU activity");
} else if (!old_gpu_suspended && gpu_suspended) {
msg_printf(NULL, MSG_INFO, "[cpu_sched] suspending GPU activity");
}
}
return 0; return 0;
} }