Open al42and opened 1 year ago
@al42and @AlexeySachkov Guys do you maybe know is there any device without USM to run on windows? I would like to reproduce this error on Win but every device I got uses usm
@al42and @AlexeySachkov Guys do you maybe know is there any device without USM to run on windows? I would like to reproduce this error on Win but every device I got uses usm
No :(
@al42and @AlexeySachkov Guys do you maybe know is there any device without USM to run on windows? I would like to reproduce this error on Win but every device I got uses usm
@pwisniewskimobica, you can try to use unit-test infrastructure for the DPC++ runtime library. It allows you to override the results of low-level API calls, so you can mock the device with no-usm support. You can find examples here: https://github.com/intel/llvm/tree/sycl/sycl/unittests. Feel free to ping @intel/llvm-reviewers-runtime team if you have questions about using the unit-test framework.
@bader @al42and @AlexeySachkov I made PR for this: https://github.com/intel/llvm/pull/10348 Please take a look
Describe the bug
sycl::device_malloc
, per the spec v2020 r7, should throw when the device does not support USM:However, when used with Mesa Rusticl backend, which does not support USM, it calmly returns 0 instead.
This seems to also affect other
sycl:malloc_X
functions.To Reproduce
Environment (please complete the following information):