Skip to content

Commit 4f7afd2

Browse files
dm-vodopyanovcallumfareJaime Arteaga
authored andcommitted
[SYCL][UR] Update Unified Runtime tag to support UR_DEVICE_INFO_IP_VERSION (#9873)
This should have been an obvious update of Unified Runtime tag to support UR_DEVICE_INFO_IP_VERSION, required in intel/llvm#9843 (just tag update, nothing else), but it also brought many API breaks caused by this patch: #536. So the current PR updates our codebase in accordance with changed UR API. --------- Signed-off-by: Dmitry Vodopyanov <[email protected]> Co-authored-by: Callum Fare <[email protected]> Co-authored-by: Jaime Arteaga <[email protected]>
1 parent 24d46d8 commit 4f7afd2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

device.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
694694
case UR_DEVICE_INFO_PARTITION_MAX_SUB_DEVICES: {
695695
return ReturnValue(0u);
696696
}
697-
case UR_DEVICE_INFO_PARTITION_PROPERTIES: {
697+
case UR_DEVICE_INFO_SUPPORTED_PARTITIONS: {
698698
return ReturnValue(static_cast<ur_device_partition_t>(0u));
699699
}
700700
case UR_DEVICE_INFO_PARTITION_AFFINITY_DOMAIN: {
@@ -1023,7 +1023,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceRetain(ur_device_handle_t hDevice) {
10231023
}
10241024

10251025
UR_APIEXPORT ur_result_t UR_APICALL
1026-
urDevicePartition(ur_device_handle_t, const ur_device_partition_property_t *,
1026+
urDevicePartition(ur_device_handle_t, const ur_device_partition_properties_t *,
10271027
uint32_t, ur_device_handle_t *, uint32_t *) {
10281028
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
10291029
}

kernel.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urKernelSetArgPointer(
295295
return UR_RESULT_SUCCESS;
296296
}
297297

298-
UR_APIEXPORT ur_result_t UR_APICALL urKernelSetArgMemObj(
299-
ur_kernel_handle_t hKernel, uint32_t argIndex, ur_mem_handle_t hArgValue) {
298+
UR_APIEXPORT ur_result_t UR_APICALL
299+
urKernelSetArgMemObj(ur_kernel_handle_t hKernel, uint32_t argIndex,
300+
const ur_kernel_arg_mem_obj_properties_t *Properties,
301+
ur_mem_handle_t hArgValue) {
300302

301303
UR_ASSERT(hKernel, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
302304

ur_interface_loader.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetGlobalProcAddrTable(
200200
if (UR_RESULT_SUCCESS != result) {
201201
return result;
202202
}
203-
pDdiTable->pfnGetLastResult = urGetLastResult;
204203
pDdiTable->pfnInit = urInit;
205204
pDdiTable->pfnTearDown = urTearDown;
206205
return UR_RESULT_SUCCESS;

0 commit comments

Comments
 (0)