triSYCL / sycl

SYCL for Vitis: Experimental fusion of triSYCL with Intel SYCL oneAPI DPC++ up-streaming effort into Clang/LLVM
Other
107 stars 19 forks source link

ONEAPI_DEVICE_SELECTOR does not work yet for `xrt` #208

Closed keryell closed 1 year ago

keryell commented 1 year ago

Describe the bug

ONEAPI_DEVICE_SELECTOR has replaced the deprecated SYCL_DEVICE_FILTER but t does not work yet.

To Reproduce

rkeryell@xsjsycl41:/var/tmp/rkeryell/SYCL/code$ ONEAPI_DEVICE_SELECTOR=xrt:0 SYCL_PI_TRACE=1 ./simple-sycl-app
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
keryell commented 1 year ago

Solved.