mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
Add cl_device_uuid_khr to getDeviceInfo.
Related-To: NEO-5681 Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d63a044e60
commit
4e4560fe91
@@ -68,6 +68,7 @@ cl_int ClDevice::getDeviceInfo(cl_device_info paramName,
|
||||
size_t value = 0u;
|
||||
ClDeviceInfoParam param{};
|
||||
const void *src = nullptr;
|
||||
std::array<uint8_t, HwInfoConfig::uuidSize> deviceUuid;
|
||||
|
||||
// clang-format off
|
||||
// please keep alphabetical order
|
||||
@@ -292,6 +293,12 @@ cl_int ClDevice::getDeviceInfo(cl_device_info paramName,
|
||||
retSize = srcSize = sizeof(deviceInfo.pciBusInfo);
|
||||
}
|
||||
break;
|
||||
case CL_DEVICE_UUID_KHR: {
|
||||
device.generateUuid(deviceUuid);
|
||||
src = &deviceUuid;
|
||||
retSize = srcSize = sizeof(deviceUuid);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
if (getDeviceInfoForImage(paramName, src, srcSize, retSize) && !getSharedDeviceInfo().imageSupport) {
|
||||
src = &value;
|
||||
|
||||
Reference in New Issue
Block a user