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.
1729 Discussions

OpenCL CPU runtime stopped working after installing Base Toolkit 2024.2.1.101

xiaowen
Beginner
1,681 Views

This is on the latest Windows 11. I installed the OCL runtime via Base Toolkit 2024.0 and have been using it all fine via PyOpenCL until I installed 2024.2.1.101. Actually it first worked fine except that since I didn't remove the old one, two versions showed up. So I uninstalled the 2024.0 and then neither version show up anymore. I tried reinstalling 2024.2.1.101 but can't get it back. I checked the regkey Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors and it has a value C:\Program Files (x86)\Intel\oneAPI\compiler\2024.2\bin\intelocl64.dll. This seems to be different from 2024.0 though. I also made sure the DLL is indeed at that location.

 

Any suggestions on how to diagnose? I'm using MSYS2 with its python modules.

 

Many thanks in advance

 

 

Labels (1)
0 Kudos
8 Replies
cw_intel
Moderator
1,619 Views

> So I uninstalled the 2024.0 and then neither version show up anymore. I tried reinstalling 2024.2.1.101 but can't get it back. 

Do you mean that the PyOpenCL code is not running successfully?

0 Kudos
xiaowen
Beginner
1,611 Views

pyopencl.get_platform() does not return Intel CPU anymore. I have an NV card on the machine which still shows up. Before I uninstall the 2024.0 Base ToolKit, the get_platform() call returns both 2024.0 and 2024.2 in addition to the NV driver.

 

0 Kudos
cw_intel
Moderator
1,605 Views

Can you run the command "sycl-ls" in "Intel oneAPI command prompt for Intel64" and tell us the output?

0 Kudos
xiaowen
Beginner
1,504 Views

@cw_intel wrote:

Can you run the command "sycl-ls" in "Intel oneAPI command prompt for Intel64" and tell us the output?


:: initializing oneAPI environment...
Initializing Visual Studio command-line environment...
Visual Studio version 17.11.4 environment configured.
"C:\Program Files\Microsoft Visual Studio\2022\Community\"
Visual Studio command-line environment initialized for: 'x64'
: advisor -- latest
: compiler -- latest
: dal -- latest
: debugger -- latest
: dev-utilities -- latest
: dnnl -- latest
: dpcpp-ct -- latest
: dpl -- latest
: ipp -- latest
: ippcp -- latest
: mkl -- latest
: mpi -- latest
: ocloc -- latest
: tbb -- latest
: vtune -- latest
:: oneAPI environment initialized ::

C:\Program Files (x86)\Intel\oneAPI>sycl-ls
[opencl:cpu][opencl:0] Intel(R) OpenCL, AMD Ryzen Threadripper PRO 3995WX 64-Cores OpenCL 3.0 (Build 0) [2024.18.7.0.11_160000]

C:\Program Files (x86)\Intel\oneAPI>

0 Kudos
cw_intel
Moderator
1,496 Views

Your CPU is AMD,  we cannot make sure “Intel CPU Runtime for OpenCL” works correctly.  You can refer to the Intel® CPU Runtime for OpenCL™ Applications Release Notes to check the supported hardware. If you have the same problem on Intel CPU, please tell us and we will investigate it. 

0 Kudos
xiaowen
Beginner
1,194 Views

I figured out the reason. It seems the file-layout has changed between 2024.0 and 2024.2 and some DLLs now lives in Program Files (x86)/Intel/oneAPI/2024.2/bin, which, AFAIK, was not added to the environment.  After adding it to the PATH, everything works as expected.

0 Kudos
cw_intel
Moderator
1,571 Views

BTW, did you set up the oneAPI environment before running your code?

0 Kudos
xiaowen
Beginner
1,500 Views

No, I didn't do anything. How do I set up the oneAPI environment? I'm running under the MSYS2 environment.

 

BTW, it all worked fine before I uninstall the 2024.0 Base Toolkit.

 

0 Kudos
Reply