Skip to content

Commit 44b4ff9

Browse files
committed
fix formatting
1 parent fd7872b commit 44b4ff9

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

source/adapters/opencl/device.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -377,18 +377,18 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
377377
case UR_DEVICE_INFO_DEVICE_ID: {
378378
bool Supported = false;
379379
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));
382382

383383
if (!Supported) {
384384
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
385385
}
386386

387-
cl_uint DeviceId = {};
388387
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;
392392
}
393393

394394
case UR_DEVICE_INFO_BACKEND_RUNTIME_VERSION: {
@@ -1019,9 +1019,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
10191019
constexpr size_t AddressBufferSize = 13;
10201020
char AddressBuffer[AddressBufferSize];
10211021
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,
10251023
PciInfo.pci_function);
10261024
return ReturnValue(AddressBuffer);
10271025
}

0 commit comments

Comments
 (0)