AnsweredAssumed Answered

How can I run a kernel with cpu device ?

Question asked by angelko on Oct 20, 2014
Latest reply on Oct 21, 2014 by dipak


I'm trying  to run a OpenCL code on multi2sim . I can run a kernel on gnu, like this :

ret = clGetDeviceIDs(platform_id, CL_DEVICE_TYPE_GPU, 1, &device_id, &ret_num_devices);

But when I run a kernel on cpu device, there is a "load kernel program failed!" error.

I just change the " CL_DEVICE_TYPE_GPU" to "CL_DEVICE_TYPE_CPU"

How can this problem be solved?

How can I run a kernel with cpu device?