Skip to content

[UR][L0] Call zeCommandListAppendHostFunction directly since L0 1.17 - #23070

Draft
ldorau wants to merge 1 commit into
intel:syclfrom
ldorau:URL0_Call_zeCommandListAppendHostFunction_directly_since_L0_1.17
Draft

[UR][L0] Call zeCommandListAppendHostFunction directly since L0 1.17#23070
ldorau wants to merge 1 commit into
intel:syclfrom
ldorau:URL0_Call_zeCommandListAppendHostFunction_directly_since_L0_1.17

Conversation

@ldorau

@ldorau ldorau commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Starting with Level Zero driver version 1.17, zeCommandListAppendHostFunction
is part of the core API, so it can be called directly instead of being
resolved via zeDriverGetExtensionFunctionAddress. For older drivers, keep
resolving it dynamically as an extension.

Update the ZeHostTaskExtension::zeCommandListAppendHostFunction function
pointer type to match the real API signature (ze_host_function_callback_t, const void *pNext, ze_event_handle_t *phWaitEvents), and fix the call site
in command_list_manager.cpp to cast pfnHostTask to
ze_host_function_callback_t instead of void *, avoiding an invalid
void * to function-pointer conversion.

Ref: Jira URT-1275

Starting with Level Zero driver version 1.17, zeCommandListAppendHostFunction
is part of the core API, so it can be called directly instead of being
resolved via zeDriverGetExtensionFunctionAddress. For older drivers, keep
resolving it dynamically as an extension.

Update the ZeHostTaskExtension::zeCommandListAppendHostFunction function
pointer type to match the real API signature (ze_host_function_callback_t,
const void *pNext, ze_event_handle_t *phWaitEvents), and fix the call site
in command_list_manager.cpp to cast pfnHostTask to
ze_host_function_callback_t instead of void *, avoiding an invalid
void* to function-pointer conversion.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
@ldorau
ldorau requested a review from kswiecicki September 1, 2026 11:58
@ldorau

ldorau commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Please review @kswiecicki @KFilipek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants