Running openCL on CPU


I have a set of kernels currently running on GPU, and do I simply set "CL_DEVICE_TYPE_CPU" in both "clGetDeviceIDs" and "clCreateContextFromType" if I want to run it in CPU?  I'm running on the intel platform.


You need to have Intel OpenCL installed.

Open this link: … opencl-sdk
On the right side you’ll see “OpenCL* CPU Only Runtime 2012” - click it, and it should install the SDK.