Skip to content

[CUDA] SYCL/USM/dep_events.cpp from llvm-test-suite fails with PI CUDA ERROR in plugins/cuda/pi_cuda.cpp:4674 on Windows #4809

Closed
@yuxianch

Description

@yuxianch

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

  1. Test source code can be found in https://github.com/intel/llvm-test-suite/blob/intel/SYCL/USM/dep_events.cpp
  2. 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

Cuda compilation tools, release 11.4, V11.4.120
Build cuda_11.4.r11.4/compiler.30300941_0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcudaCUDA back-endruntimeRuntime library related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions