Calling ioc64.exe with device=CPU results in "Failed to initialize driver version from platform...: 0 (CL_SUCCESS)".
Background: I'm running Windows 10 Education on an Intel(R) Core(TM) i7-8700K CPU, and the OpenCL SDK and the newest OpenCL CPU runtime are installed and working.
I don't get this error if I set device=GPU, then everything works fine. And I didn't get this error a few weeks ago. In meantime I've upgraded from Windows 10 Home to Windows 10 Education.
I am also having the same issue
Dell Inspiron 5567 Gen 7 with Intel® Core™ i5-7200U Processor with integrated Intel® HD Graphics 620. There are no other graphics cards.
Graphic driver 18.104.22.1680 3/18/2022
CPU Runtime w_opencl_runtime_p_2022.0.3.3747
Compiling the OpenCL template from above SDK (it is set to CPU target)
MSVC 2019 output
Build started... 1>------ Build started: Project: CPUOpenCLProjectforWindows1, Configuration: Debug Win32 ------ 1>Preprocessing: Template.cl 1>Using build options: -I "C:\Users\epatt\source\repos\CPUOpenCLProjectforWindows1" 1>C:\Users\epatt\source\repos\CPUOpenCLProjectforWindows1\Template.cl : error CL: Failed to initialize driver version from platform...: 0 (CL_SUCCESS) 1>Build failed! 1> 1>C:\Program Files (x86)\IntelSWTools\system_studio_2020\OpenCL\sdk\BuildCustomizations\IntelOpenCL.targets(49,5): error MSB3721: The command ""C:\Program Files (x86)\IntelSWTools\system_studio_2020\OpenCL\sdk\bin\x86\ioc32.exe" -cmd=build -input="C:\Users\epatt\source\repos\CPUOpenCLProjectforWindows1\Template.cl" -output="Debug\Template.out" -VS -device=CPU -targetos=current -bo=" "" exited with code -1073740791. 1>Done building project "CPUOpenCLProjectforWindows1.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could you use OpenCL CPU Runtime, instead of OpenCL SDK? Maybe there are some compatibility issues between OpenCL CPU Runtime and OpenCL SDK. Could you uninstall OpenCL SDK and try again?