Use common definition of UUID for Intel GPUs

This patch will eventaully allow matching UUIDs queried
from NEO with UUIDs queried from other GPU APIs implementations
for Intel GPUs

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
Kamil Diedrich
2023-01-05 15:01:17 +01:00
committed by Compute-Runtime-Automation
parent 200734892b
commit ad579be87c
8 changed files with 166 additions and 29 deletions

View File

@@ -295,7 +295,9 @@ cl_int ClDevice::getDeviceInfo(cl_device_info paramName,
}
break;
case CL_DEVICE_UUID_KHR:
device.generateUuid(uuid);
if (device.getUuid(uuid) == false) {
device.generateUuid(uuid);
}
src = uuid.data();
retSize = srcSize = CL_UUID_SIZE_KHR;
break;