Skip to content

sycl-ls fails with CUDA ERROR: UR_RESULT_ERROR_UNSUPPORTED_FEATURE at adapters/cuda/platform.cpp:98 #20282

@sycloid

Description

@sycloid

Describe the bug

$ ONEAPI_DEVICE_SELECTOR=cuda:* sycl-ls
INFO: Output filtered by ONEAPI_DEVICE_SELECTOR environment variable, which is set to cuda:*.
To see device ids, use the --ignore-device-selectors CLI option.

<CUDA>[ERROR]:
UR ERROR:
        Value:           UR_RESULT_ERROR_UNSUPPORTED_FEATURE
        Function:        operator()
        Source Location: /home/sycloid/sycl-builds/test_llvm/unified-runtime/source/adapters/cuda/platform.cpp:98

SYCL Exception encountered: cuda backend failed with error: 44 (UR_RESULT_ERROR_UNSUPPORTED_FEATURE)

Level-Zero device can be listed:

$ ONEAPI_DEVICE_SELECTOR=level_zero:* sycl-ls
INFO: Output filtered by ONEAPI_DEVICE_SELECTOR environment variable, which is set to level_zero:*.
To see device ids, use the --ignore-device-selectors CLI option.

[level_zero:gpu] Intel(R) oneAPI Unified Runtime over Level-Zero, Intel(R) Graphics [0x7d45] 12.70.4 [1.6.31294.120000]

Setting LD_LIBRARY_PATH does not help this time:

$ which libcuda.so
/usr/lib/wsl/lib/libcuda.so

$ ONEAPI_DEVICE_SELECTOR=cuda:* LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/wsl/lib sycl-ls
INFO: Output filtered by ONEAPI_DEVICE_SELECTOR environment variable, which is set to cuda:*.
To see device ids, use the --ignore-device-selectors CLI option.

<CUDA>[ERROR]:
UR ERROR:
        Value:           UR_RESULT_ERROR_UNSUPPORTED_FEATURE
        Function:        operator()
        Source Location: /home/sycloid/sycl-builds/test_llvm/unified-runtime/source/adapters/cuda/platform.cpp:98

SYCL Exception encountered: cuda backend failed with error: 44 (UR_RESULT_ERROR_UNSUPPORTED_FEATURE)

To reproduce

Use SYCL built from source:

$ clang++ --version
clang version 22.0.0git (https://github.com/intel/llvm 82ad61d765c6ccfd38ab4627a1d2b136a6ea02cd)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/sycloid/sycl-builds/test_llvm/build_sycl/bin
Build config: +assertions

Environment

  • OS: Ubuntu 24.04 on WSL under Windows 11
  • NVIDIA RTX 3050
  • DPC++ version: SHA: 82ad61d
  • Dependencies version:
$ nvidia-smi
Mon Oct  6 07:52:16 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.82.02              Driver Version: 581.15         CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3050 ...    On  |   00000000:02:00.0 Off |                  N/A |
| N/A   40C    P0             11W /   35W |       0MiB /   4096MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcudaCUDA back-end

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions