Closed
Description
Describe the bug
SYCL/USM/dep_events.cpp from https://github.com/intel/llvm-test-suite fails with PI CUDA ERROR in plugins/cuda/pi_cuda.cpp:4674 with CUDA backend on Windows.
To Reproduce
- Test source code can be found in https://github.com/intel/llvm-test-suite/blob/intel/SYCL/USM/dep_events.cpp
- The command which should be used to compile the program and launch the program
clang-cl.exe /EHsc -fsycl -fsycl-targets=nvptx64-nvidia-cuda SYCL\USM\dep_events.cpp -o build\SYCL\USM\Output\dep_events.cpp.tmp1.out
env SYCL_DEVICE_FILTER=cuda:gpu,host build\SYCL\USM\Output\dep_events.cpp.tmp1.out
Output of the program:
PI CUDA ERROR:
Value: 101
Name: CUDA_ERROR_INVALID_DEVICE
Description: invalid device ordinal
Function: cuda_piextUSMEnqueuePrefetch
Source Location: ${compiler_build_path}\llvm.src\sycl\plugins\cuda\pi_cuda.cpp:4674
Environment
- OS: Windows
- Target device and vendor: Nvidia GPU
- DPC++ version: https://github.com/intel/llvm.git 3ef8c82
- CUDA version:
Cuda compilation tools, release 11.4, V11.4.120
Build cuda_11.4.r11.4/compiler.30300941_0