- validator: detect jobs that used GPU app but fell back to CPU

(SETI@home does this if GPU initialization fails).
    Treat these like CPU apps for credit purposes.

svn path=/trunk/boinc/; revision=21130
This commit is contained in:
David Anderson 2010-04-06 23:48:35 +00:00
parent a27dfb31fc
commit 212fb765e9
2 changed files with 22 additions and 0 deletions

View File

@ -2554,3 +2554,11 @@ David 6 Apr 2010
sched_send.cpp sched_send.cpp
client/ client/
cs_notices.cpp cs_notices.cpp
David 6 Apr 2010
- validator: detect jobs that used GPU app but fell back to CPU
(SETI@home does this if GPU initialization fails).
Treat these like CPU apps for credit purposes.
sched/
credit.cpp

View File

@ -649,6 +649,20 @@ int get_pfc(
return 0; return 0;
} }
// temporary kludge for SETI@home:
// if GPU initialization fails the app falls back to CPU.
//
if (strstr(r.stderr_out, "Device Emulation (CPU)")) {
if (config.debug_credit) {
log_messages.printf(MSG_NORMAL,
"[credit] [RESULT#%d] CUDA app fell back to CPU\n",
r.id
);
}
pfc = wu.rsc_fpops_est;
return 0;
}
int gavid = generalized_app_version_id(r.app_version_id, r.appid); int gavid = generalized_app_version_id(r.app_version_id, r.appid);
retval = hav_lookup(hav, r.hostid, gavid); retval = hav_lookup(hav, r.hostid, gavid);
if (retval) return retval; if (retval) return retval;