oneDPL
oneDPL copied to clipboard
Check for support of specific type of USM in tests
Signed-off-by: Sobolev, Dmitriy [email protected]
Some devices do not support shared allocations, e.g. some FPGA cards/configurations. Using not supported allocation will result in getting nullptr and then accessing it.
- [X] To verify with the 2021.1 version of DPC++ compiler in order not to break backward compatibility of the tests. 2021.1.2 compiler throws "sycl::runtime_error" and returns "This device aspect has not been implemented yet".
The patch which adds support of USM aspects: https://github.com/intel/llvm/commit/ce3ac0986844401248b7835ce7a6f7a9eb78aac2
@SergeyKopienko, could you review this patch?
@dmitriy-sobolev, please rebase from main this branch.