mirror of https://github.com/BOINC/boinc.git
- scheduler: use HOST_USAGE::uses_gpu() function where appropriate
This commit is contained in:
parent
c332021853
commit
e2ab21944d
|
@ -7209,3 +7209,8 @@ David 30 Nov 2012
|
|||
|
||||
mac_installer/PostInstall.cpp
|
||||
|
||||
David 30 Nov 2012
|
||||
- scheduler: use HOST_USAGE::uses_gpu() function where appropriate
|
||||
|
||||
sched/
|
||||
sched_customize.cpp
|
||||
|
|
|
@ -76,7 +76,7 @@ bool wu_is_infeasible_custom(WORKUNIT& wu, APP& app, BEST_APP_VERSION& bav) {
|
|||
// we'll skip this job rather than send it for the CPU.
|
||||
// Fixing this would require a big architectural change.
|
||||
//
|
||||
if (strstr(wu.name, "_v1") && bav.host_usage.proc_type != PROC_TYPE_CPU) {
|
||||
if (strstr(wu.name, "_v1") && bav.host_usage.uses_gpu()) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
@ -95,7 +95,7 @@ bool wu_is_infeasible_custom(WORKUNIT& wu, APP& app, BEST_APP_VERSION& bav) {
|
|||
#if 0
|
||||
// example: if GPU app and WU name contains ".vlar", don't send
|
||||
//
|
||||
if (bav.host_usage.proc_type != PROC_TYPE_CPU) {
|
||||
if (bav.host_usage.uses_gpu()) {
|
||||
if (strstr(wu.name, ".vlar")) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue