- scheduler: in app_plan(), check for "opencl" before "ati".

Otherwise "opencl_ati" won't get handled right.
    Fixes #1158


svn path=/trunk/boinc/; revision=24716
This commit is contained in:
David Anderson 2011-12-02 14:37:47 +00:00
parent 08cc11b09b
commit 2d7573b8f7
2 changed files with 10 additions and 2 deletions

View File

@ -8785,3 +8785,11 @@ Charlie 2 Dec 2011
clientgui/
mac/
SetupSecurity.cpp
David 2 Dec 2011
- scheduler: in app_plan(), check for "opencl" before "ati".
Otherwise "opencl_ati" won't get handled right.
Fixes #1158
sched/
sched_customize.cpp

View File

@ -547,6 +547,8 @@ static inline bool app_plan_vbox(
bool app_plan(SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu) {
if (!strcmp(plan_class, "mt")) {
return app_plan_mt(sreq, hu);
} else if (strstr(plan_class, "opencl")) {
return app_plan_opencl(sreq, plan_class, hu);
} else if (strstr(plan_class, "ati")) {
return app_plan_ati(sreq, plan_class, hu);
} else if (strstr(plan_class, "cuda")) {
@ -559,8 +561,6 @@ bool app_plan(SCHEDULER_REQUEST& sreq, char* plan_class, HOST_USAGE& hu) {
return app_plan_vbox(sreq, hu, false);
} else if (!strcmp(plan_class, "vbox64")) {
return app_plan_vbox(sreq, hu, true);
} else if (strstr(plan_class, "opencl")) {
return app_plan_opencl(sreq, plan_class, hu);
}
log_messages.printf(MSG_CRITICAL,
"Unknown plan class: %s\n", plan_class