clGetPlatformIDs() returns -1001

clGetPlatformIDs() returns -1001

I have installed the latest intel opencl sdk 2012

However the application stops at the point when it calls clGetPlatformIDs()

The function returns -1001

I can confirm that registry keys point correctly to IntelOpenCL32/64.dll, and the files exist in the system path

My CPU is i5-2500K

The same program runs fine on another pc with AMD opencl driver and i3 cpu

Please help and advise

10 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Anton,

-1001 = CL_PLATFORM_NOT_FOUND_KHR, and is returned when clGetPlatformIDs() sees no platforms available. Obviously, you are trying to execute your code on the Intel HD graphics. Can you list the driver version you are using?

- Chuck

Chuck,

I want to run my code on CPU. I understand that it should be possible.

The idea is to have a CPU-fallback option when there is no compliant GPU, which is the case with sandy bridge.

More info: on the 2nd machine, with working amd opencl, I also installed intel opencl, and guess what? It still shows only amd platform.

I think I have the latest driver (maybe late 2012)

Anton,

That is interesting. This is on Windows? Which version? 32 or 64 bit? If you install the GPU Caps viewer, what platform does it show you?

- Chuck

Chuck,

Windows 7 x64.

Driver 8.15.10.2696, apparently 3/19/2012

Anlagen: 

AnhangGröße
Herunterladen untitled.png28.45 KB

Anton,

What does GPU Caps viewer show under "OpenCL"?

Raghu

Chuck,

I updated my driver to 12'2012 and now it works fine

Thanks for the hint

Don't worry, I have already slapped myself for not having the latest driver :/

Anton,

No problem. Glad to here it is working for you.

- Chuck

Chuck,

BTW do I understand correctly that I need to have intel graphics driver istalled (and probably to have intel graphics enabled in bios and device manager) for intel opencl to run on CPU?

No that's not true. You can just install the CPU runtime to expose the OpenCL CPU device. I am guessing there was some other problem with your previous installation and the runtime probably didnt detect your device.

Melden Sie sich an, um einen Kommentar zu hinterlassen.