diff --git a/checkin_notes b/checkin_notes index a2805bb043..e36a2a4a3d 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8021,3 +8021,11 @@ David 23 Sept 2009 sched/ sched_customize.cpp + +David 23 Sept 2009 + - scheduler: change it to: + "ati" means CAL 1.2 or less (Catalyst 9.1 or less) + "ati13" means CAL 1.3 or greater (Catalyst 9.2+) + + sched/ + sched_customize.cpp diff --git a/sched/sched_customize.cpp b/sched/sched_customize.cpp index 5d736d4176..9588afb40b 100644 --- a/sched/sched_customize.cpp +++ b/sched/sched_customize.cpp @@ -124,17 +124,31 @@ bool app_plan(SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu) { int major, minor, release; sscanf(cp->version, "%d.%d.%d", &major, &minor, &release); int vers = major*1000000 + minor*1000 + release; - if (!strcmp(plan_class, "ati13186")) { - // here if we require CAL version 1.3 or later + if (!strcmp(plan_class, "ati")) { + // here if we require CAL version 1.2 or earlier // - if (vers < 1003186) { + if (vers <= 1003000) { if (config.debug_version_select) { log_messages.printf(MSG_NORMAL, - "[version] host has CAL version %s, need 1.3.186\n", + "[version] host has CAL version %s, need 1.2-\n", cp->version ); } - add_no_work_message("ATI driver version 1.3.186 needed to use GPU"); + add_no_work_message("ATI driver version 1.2 needed to use GPU"); + return false; + } + } + if (!strcmp(plan_class, "ati13")) { + // here if we require CAL version 1.3 or later + // + if (vers < 1003000) { + if (config.debug_version_select) { + log_messages.printf(MSG_NORMAL, + "[version] host has CAL version %s, need 1.3+\n", + cp->version + ); + } + add_no_work_message("ATI driver version 1.3+ needed to use GPU"); return false; } }