diff --git a/checkin_notes b/checkin_notes index ae86918479..45e234932a 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/sched/sched_customize.cpp b/sched/sched_customize.cpp index f99986a39c..9924562aa6 100644 --- a/sched/sched_customize.cpp +++ b/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; }