- scheduler: use HOST_USAGE::uses_gpu() function where appropriate

This commit is contained in:
David Anderson 2012-11-30 18:12:44 -08:00 committed by Oliver Bock
parent c332021853
commit e2ab21944d
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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;
}