Skip to content

Unable to run cuda backend on Windows 11 #11144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shingen75 opened this issue Sep 11, 2023 · 3 comments
Open

Unable to run cuda backend on Windows 11 #11144

shingen75 opened this issue Sep 11, 2023 · 3 comments
Labels
bug Something isn't working cuda CUDA back-end Windows

Comments

@shingen75
Copy link

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 #11058 (comment)

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 ed70e2b)
  • 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

@shingen75 shingen75 added the bug Something isn't working label Sep 11, 2023
@AlexeySachkov AlexeySachkov added the cuda CUDA back-end label Sep 12, 2023
@blinkfrog
Copy link

blinkfrog commented Sep 22, 2023

I have exactly the same problem.

  • OS: Windows 11 Home version : 22H2
  • CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz 2.30 GHz
  • Target device and vendor: NVIDIA GeForce RTX 3080 Laptop GPU Driver Version: 31.0.15.3713
  • CUDA version: 12.2
  • DPC++ version: clang version 18.0.0 (https://github.com/intel/llvm ca56d79)

I also have Windows-version of oneAPI 2023.2 installed and integrated with Visual Studio - in case if there can be some probable conflict with it.

@blinkfrog
Copy link

I just wanted to note that I cloned and compiled newer version of DPC++ (8fe166f) and it works with CUDA backend, although many SYCL-programs don't work, as I mentioned there: #11740

@JackAKirk
Copy link
Contributor

Please ensure you have a supported version of windows for cuda: as listed here: https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html#system-requirements

22H2 is not marked as supported but 22H2-SV2 is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuda CUDA back-end Windows
Projects
None yet
Development

No branches or pull requests

4 participants