From 0abfbfff9e0304730d06e3c455efbefad36aa61e Mon Sep 17 00:00:00 2001 From: Lukasz Dorau Date: Wed, 19 Nov 2025 15:29:22 +0000 Subject: [PATCH] [UR] Call zeCommandListAppendLaunchKernelWithArguments() directly Call zeCommandListAppendLaunchKernelWithArguments() directly (not using the pointer). Signed-off-by: Lukasz Dorau --- unified-runtime/source/adapters/level_zero/platform.cpp | 3 --- unified-runtime/source/adapters/level_zero/platform.hpp | 4 ---- .../source/adapters/level_zero/v2/command_list_manager.cpp | 4 +--- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/unified-runtime/source/adapters/level_zero/platform.cpp b/unified-runtime/source/adapters/level_zero/platform.cpp index b58ebb0ba7d12..ef7590bf9f42c 100644 --- a/unified-runtime/source/adapters/level_zero/platform.cpp +++ b/unified-runtime/source/adapters/level_zero/platform.cpp @@ -527,9 +527,6 @@ ur_result_t ur_platform_handle_t_::initialize() { ZeMemGetPitchFor2dImageExt.zeMemGetPitchFor2dImage != nullptr; if (this->isDriverVersionNewerOrSimilar(1, 14, 36035)) { - ZeCommandListAppendLaunchKernelWithArgumentsExt - .zeCommandListAppendLaunchKernelWithArgumentsFunctionPtr = - zeCommandListAppendLaunchKernelWithArguments; ZeCommandListAppendLaunchKernelWithArgumentsExt.Supported = true; } else { ZeCommandListAppendLaunchKernelWithArgumentsExt.Supported = false; diff --git a/unified-runtime/source/adapters/level_zero/platform.hpp b/unified-runtime/source/adapters/level_zero/platform.hpp index 022e81f5d53b7..81d7528cfb250 100644 --- a/unified-runtime/source/adapters/level_zero/platform.hpp +++ b/unified-runtime/source/adapters/level_zero/platform.hpp @@ -166,9 +166,5 @@ struct ur_platform_handle_t_ : ur::handle_base, struct ZeCommandListAppendLaunchKernelWithArgumentsExtension { bool Supported = false; bool DriverSupportsCooperativeKernelLaunchWithArgs = false; - ze_result_t (*zeCommandListAppendLaunchKernelWithArgumentsFunctionPtr)( - ze_command_list_handle_t, ze_kernel_handle_t, const ze_group_count_t, - const ze_group_size_t, void **, const void *, ze_event_handle_t, - uint32_t, ze_event_handle_t *); } ZeCommandListAppendLaunchKernelWithArgumentsExt; }; diff --git a/unified-runtime/source/adapters/level_zero/v2/command_list_manager.cpp b/unified-runtime/source/adapters/level_zero/v2/command_list_manager.cpp index ac3529fbe0ce1..b74b5d534275b 100644 --- a/unified-runtime/source/adapters/level_zero/v2/command_list_manager.cpp +++ b/unified-runtime/source/adapters/level_zero/v2/command_list_manager.cpp @@ -175,9 +175,7 @@ ur_result_t ur_command_list_manager::appendKernelLaunchLocked( TRACK_SCOPE_LATENCY("ur_command_list_manager::" "zeCommandListAppendLaunchKernelWithArguments"); ze_group_size_t groupSize = {WG[0], WG[1], WG[2]}; - ZE2UR_CALL(hContext->getPlatform() - ->ZeCommandListAppendLaunchKernelWithArgumentsExt - .zeCommandListAppendLaunchKernelWithArgumentsFunctionPtr, + ZE2UR_CALL(zeCommandListAppendLaunchKernelWithArguments, (getZeCommandList(), hZeKernel, zeThreadGroupDimensions, groupSize, hKernel->kernelArgs.data(), pNext, zeSignalEvent, waitListView.num, waitListView.handles));