llvm
6d97ea9a - [UR] Fix isPVC() to handle unsupported UR_DEVICE_INFO_DEVICE_ID (#22006)

Commit
82 days ago
[UR] Fix isPVC() to handle unsupported UR_DEVICE_INFO_DEVICE_ID (#22006) The isPVC() utility used EXPECT_EQ which recorded a test failure when the adapter does not support UR_DEVICE_INFO_DEVICE_ID (e.g. Native CPU). This caused the test to be marked FAILED even though it would subsequently skip via GTEST_SKIP(). Return false instead of asserting when the query fails — if the adapter cannot report a device ID, the device is clearly not a PVC. Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Author
Parents
Loading