Unable to run cuda backend on Windows 11
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
Able to build the clang with cuda backend with CUDA version 11.6 and 12.2 ,however, I am not able to run the compiled sample.
I have reported the same report earlier with a different hardware configuration and different Windows version. The bug report for that bug report is https://github.com/intel/llvm/issues/11058#issue-1881036178
NOTE : Compiling to target CPU works ( clang++ -fsycl simple-sycl-app.cpp -o simple-sycl-app.exe and the ONEAPI_DEVICE_SELECTOR is not set )
To Reproduce
The simple-sycl-app.cpp described in the getting started document is used.
Compile and run command:
set PATH=%DPCPP_HOME%\llvm\build_cuda\install\bin;%PATH%
set LIB=%DPCPP_HOME%\llvm\build_cuda\install\lib;%LIB%
clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda simple-sycl-app.cpp -o simple-sycl-app.exe
set ONEAPI_DEVICE_SELECTOR=cuda:*
set SYCL_PI_TRACE=-1
simple-sycl-app.exe
Result:
---> DLL_PROCESS_ATTACH pi_win_proxy_loader.dll
---> DLL_PROCESS_ATTACH pi_opencl.dll
---> DLL_PROCESS_ATTACH pi_level_zero.dll
---> DLL_PROCESS_ATTACH syclx.dll
SYCL_PI_TRACE[all]: Check if plugin is present. Failed to load plugin: pi_cuda.dll
SYCL_PI_TRACE[all]: Check if plugin is present. Failed to load plugin: pi_unified_runtime.dll
- OS: Windows 11 Pro version : **22H2**
- CPU:13th Gen Intel(R) Core(TM) i7-13700K 3.40 GHz
- Target device and vendor: NVIDIA GeForce RTX 4070
- CUDA version : 11.6 and 12.2 both were attempted
- DPC++ version: clang version 18.0.0 (https://github.com/intel/llvm ed70e2b60c6c0e2db9d7acf4dac0ffed2d3832b8)
- Dependencies version:
cmake version 3.20.21032501-MSVC_2
ninja version 1.10.2
Driver
Version: 536.67
CUDA : NVIDIA CUDA 12.2.128 and 11.6 both attempted
Windows SDK
-Version 10.0.19041.0
Contributor guide
Assessment
This issue has not been assessed yet.