@@ -377,18 +377,18 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
377
377
case UR_DEVICE_INFO_DEVICE_ID: {
378
378
bool Supported = false ;
379
379
UR_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
380
- cl_adapter::cast<cl_device_id >(hDevice), { " cl_intel_device_attribute_query " },
381
- Supported));
380
+ cl_adapter::cast<cl_device_id >(hDevice),
381
+ { " cl_intel_device_attribute_query " }, Supported));
382
382
383
383
if (!Supported) {
384
384
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
385
385
}
386
386
387
- cl_uint DeviceId = {};
388
387
CL_RETURN_ON_FAILURE (clGetDeviceInfo (
389
- cl_adapter::cast<cl_device_id >(hDevice), CL_DEVICE_ID_INTEL,
390
- sizeof (DeviceId), &DeviceId, nullptr ));
391
- return ReturnValue (DeviceId);
388
+ cl_adapter::cast<cl_device_id >(hDevice), CL_DEVICE_ID_INTEL, propSize,
389
+ pPropValue, pPropSizeRet));
390
+
391
+ return UR_RESULT_SUCCESS;
392
392
}
393
393
394
394
case UR_DEVICE_INFO_BACKEND_RUNTIME_VERSION: {
@@ -1019,9 +1019,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
1019
1019
constexpr size_t AddressBufferSize = 13 ;
1020
1020
char AddressBuffer[AddressBufferSize];
1021
1021
std::snprintf (AddressBuffer, AddressBufferSize, " %04x:%02x:%02x.%01x" ,
1022
- PciInfo.pci_domain ,
1023
- PciInfo.pci_bus ,
1024
- PciInfo.pci_device ,
1022
+ PciInfo.pci_domain , PciInfo.pci_bus , PciInfo.pci_device ,
1025
1023
PciInfo.pci_function );
1026
1024
return ReturnValue (AddressBuffer);
1027
1025
}
0 commit comments