Skip to content

Commit 0d6df96

Browse files
committed
[SYCL][HIP][UR] Add usmPool entry points to ddi tables and fix ur*nativeHandle apis
1 parent 062d068 commit 0d6df96

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

sycl/plugins/unified_runtime/ur/adapters/hip/device.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetNativeHandle(
922922

923923
UR_APIEXPORT ur_result_t UR_APICALL urDeviceCreateWithNativeHandle(
924924
ur_native_handle_t hNativeDevice, ur_platform_handle_t hPlatform,
925+
const ur_device_native_properties_t *pProperties,
925926
ur_device_handle_t *phDevice) {
926927
UR_ASSERT(hNativeDevice, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
927928
UR_ASSERT(phDevice, UR_RESULT_ERROR_INVALID_NULL_POINTER);

sycl/plugins/unified_runtime/ur/adapters/hip/program.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ urProgramLink(ur_context_handle_t hContext, uint32_t count,
139139
/// \return TBD
140140
UR_APIEXPORT ur_result_t UR_APICALL urProgramCreateWithNativeHandle(
141141
ur_native_handle_t hNativeProgram, ur_context_handle_t hContext,
142+
const ur_program_native_properties_t *pProperties,
142143
ur_program_handle_t *phProgram) {
143144
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
144145
}

sycl/plugins/unified_runtime/ur/adapters/hip/queue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueFlush(ur_queue_handle_t hQueue) {
264264
///
265265
/// \return UR_RESULT_SUCCESS
266266
UR_APIEXPORT ur_result_t UR_APICALL urQueueGetNativeHandle(
267-
ur_queue_handle_t hQueue, ur_native_handle_t *phNativeQueue) {
267+
ur_queue_handle_t hQueue, ur_queue_native_desc_t *pDesc, ur_native_handle_t *phNativeQueue) {
268268
UR_ASSERT(hQueue, UR_RESULT_ERROR_INVALID_NULL_HANDLE);
269269
UR_ASSERT(phNativeQueue, UR_RESULT_ERROR_INVALID_NULL_POINTER);
270270

sycl/plugins/unified_runtime/ur/adapters/hip/ur_interface_loader.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,9 @@ urGetUSMProcAddrTable(ur_api_version_t version, ur_usm_dditable_t *pDdiTable) {
234234
pDdiTable->pfnGetMemAllocInfo = urUSMGetMemAllocInfo;
235235
pDdiTable->pfnHostAlloc = urUSMHostAlloc;
236236
pDdiTable->pfnPoolCreate = nullptr;
237-
pDdiTable->pfnPoolDestroy = nullptr;
238-
pDdiTable->pfnPoolDestroy = nullptr;
237+
pDdiTable->pfnPoolRetain = nullptr;
238+
pDdiTable->pfnPoolRelease = nullptr;
239+
pDdiTable->pfnPoolGetInfo = nullptr;
239240
pDdiTable->pfnSharedAlloc = urUSMSharedAlloc;
240241
return UR_RESULT_SUCCESS;
241242
}

0 commit comments

Comments
 (0)