Skip to content

clang version 18.0.0 gives runtime error while creating sycl::queue with sycl::image support #11135

@ghost

Description

sycl::queue created with aspect_selector(sycl::aspect::image) throws runtime error on clang version 18.0.0

To Reproduce

  1. Reproducer code snippet - test.txt
  2. Command to compile and run - clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda test.cpp && ./a.out
  3. Run time error thrown-

terminate called after throwing an instance of 'sycl::_V1::runtime_error' what(): No device of requested type available. -1 (PI_ERROR_DEVICE_NOT_FOUND) Aborted (core dumped)

Expected Output -

Starting...
Creating queue with sycl image support...

Running on NVIDIA H100 PCIe

Environment (please complete the following information):

Additional context

Code gives expected output with clang 17.0.0

clang version 17.0.0 (https://github.com/intel/llvm a7a6de2)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions