- server: Add a default plan class for the Intel GPUs.

(opencl_intel_gpu_101)
This commit is contained in:
Rom Walton 2012-12-11 14:15:35 -05:00 committed by Oliver Bock
parent b771751a84
commit 3c20551a8f
2 changed files with 26 additions and 0 deletions

View File

@ -7573,3 +7573,10 @@ Charlie 11 Dec 2012
buildsqlite3.sh (added)
HowToBuildBOINC_XCode.rtf
setupforBOINC.sh
Rom 11 Dec 2012
- server: Add a default plan class for the Intel GPUs.
(opencl_intel_gpu_101)
sched/
sched_customize.cpp

View File

@ -566,6 +566,25 @@ static inline bool app_plan_opencl(
);
return false;
}
} else if (strstr(plan_class, "intel_gpu")) {
COPROC_INTEL& c = sreq.coprocs.intel_gpu;
if (!c.count) return false;
if (!c.have_opencl) return false;
if (!strcmp(plan_class, "opencl_intel_gpu_101")) {
return opencl_check(
c, hu,
101,
256*MEGA,
1,
.1,
.2
);
} else {
log_messages.printf(MSG_CRITICAL,
"Unknown plan class: %s\n", plan_class
);
return false;
}
// maybe add a clause for multicore CPU