OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1718 Discussions

clGetDeviceIDs bug in SDK 2012

letinono
Beginner
260 Views
Hy all,
Maybe I'm wrong but I think I have found a bug in the OpenCL SDK 2012 with the clGetDeviceIDs function.
When I call it with these parameters:
clGetDeviceIDs(intelPlatformId, CL_DEVICE_TYPE_GPU, 0, NULL, &nbDevice);
it must returnsCL_DEVICE_NOT_FOUND but it returns CL_SUCCESS and nbDevice is set to 0.
I don't try with other DEVICE_TYPE but I can if needed.
0 Kudos
1 Reply
Raghupathi_M_Intel
260 Views
Hi,

Thanks for reporting the issue. Yes, it looks like a bug (I verified I am seeing the same behavior as you). When no devices are found matching the device_id, clGetDeviceIDs must return CL_DEVICE_NOT_FOUND. I will file an issue and let you know when a fix is available.

Thanks,
Raghu
0 Kudos
Reply