Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,11 @@ inline void isQueueBatched(ur_queue_handle_t queue, bool *info) {
// when that is stable.
static inline bool isPVC(ur_device_handle_t hDevice) {
uint32_t deviceId;
EXPECT_EQ(urDeviceGetInfo(hDevice, UR_DEVICE_INFO_DEVICE_ID, sizeof(uint32_t),
&deviceId, nullptr),
UR_RESULT_SUCCESS);
ur_result_t result = urDeviceGetInfo(hDevice, UR_DEVICE_INFO_DEVICE_ID,
sizeof(uint32_t), &deviceId, nullptr);
if (result != UR_RESULT_SUCCESS) {
return false;
}
return (deviceId & 0xff0) == 0xbd0 || (deviceId & 0xff0) == 0xb60;
}

Expand Down
Loading