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 @@ -181,8 +181,14 @@ struct _ur_device_handle_t : _ur_object {

bool isSubDevice() { return RootDevice != nullptr; }

// Is this a Data Center GPU Max series (aka PVC).
bool isPVC() { return (ZeDeviceProperties->deviceId & 0xff0) == 0xbd0; }
// Is this a Data Center GPU Max series (aka PVC)?
// TODO: change to use
// https://spec.oneapi.io/level-zero/latest/core/api.html#ze-device-ip-version-ext-t
// when that is stable.
bool isPVC() {
return (ZeDeviceProperties->deviceId & 0xff0) == 0xbd0 ||
(ZeDeviceProperties->deviceId & 0xff0) == 0xb60;
}

// Does this device represent a single compute slice?
bool isCCS() const {
Expand Down