Hi,
I have Intel core i7 3rd geneartion with intel HD 4000 GPU. I downloaded the Intel OpenCL SDK 1.2. Everything was great and the opencl can find and program my CPU and HD 4000 GPU. However, Now, the OpenCL can only find and program the GPU. For example, the sample code below from BitonicSort example. the context is only created when g_bRunOnPG=1 otherwise the context for CPU isn't created. All intel OpenCL SDK applications can't find the CPU. Any suggestions?
cl_context_properties context_properties[3] = {CL_CONTEXT_PLATFORM, (cl_context_properties)intel_platform_id, NULL };
// create the OpenCL context on a CPU/PG
if(g_bRunOnPG)
{
g_context = clCreateContextFromType(context_properties, CL_DEVICE_TYPE_GPU, NULL, NULL, NULL);
}
else
{
g_context = clCreateContextFromType(context_properties, CL_DEVICE_TYPE_CPU, NULL, NULL, NULL);
}