sycl::queue created with aspect_selector(sycl::aspect::image)
throws runtime error on clang version 18.0.0
To Reproduce
- Reproducer code snippet - test.txt
- Command to compile and run - clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda test.cpp && ./a.out
- 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