CL_DEVICE_NOT_AVAILABLE using Intel(R)Xeon(R)Gold 6240 CPU

31 views Asked by At

I get the error CL_DEVICE_NOT_AVAILABLE when debugging an openCL exe.And the cpu is Intel(R)Xeon(R)Gold 6240 [email protected](32 processors),and I have installed cl_runtime_14.2_x86_setup.msi.Is there something lost? And which tool can debug inside the kernel code of openCL?

1

There are 1 answers

1
ProjectPhysX On

To find out whether the problem is with the application or with the OpenCL runtime installation, try running the OpenCL-Benchmark. If this says there is no OpenCL devices, then the runtime installation is not working.

The Intel OpenCL CPU Runtime installer in current version w_opencl_runtime_p_2024.0.0.49848.exe is bugged such that after installation, the CPU does not show up as OpenCL device. To get it working, a modification in registry keys is necessary:

  • pressWin+R, type regedit, press Enter; the Registry Editor will open
  • in the path text field, enter Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors
    • richt click, New-->DWORD-Value (32-bit)
    • name it C:\Program Files (x86)\Common Files\Intel\Shared Libraries\bin\intelocl64.dll
    • leave its value at 0 (Hexadecimal)
  • in the path text field, enter Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors
    • richt click, New-->DWORD-Value (32-bit)
    • name it C:\Program Files (x86)\Common Files\Intel\Shared Libraries\bin\intelocl64.dll
    • leave its value at 0 (Hexadecimal)
  • in the path text field, enter Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Khronos\OpenCL\Vendors
    • richt click, New-->DWORD-Value (32-bit)
    • name it C:\Program Files (x86)\Common Files\Intel\Shared Libraries\bin32\intelocl32.dll
    • leave its value at 0 (Hexadecimal)
  • close Registry Editor
  • reboot
  • the CPU should now show up as OpenCL device