diff --git a/checkin_notes b/checkin_notes index 4961053614..846d509cd7 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/sched/sched_customize.cpp b/sched/sched_customize.cpp index f0c691c6c5..2fe8541e3c 100644 --- a/sched/sched_customize.cpp +++ b/sched/sched_customize.cpp @@ -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