[llvm] [Offload] Implement better level zero dispatch (PR #218367)

Ɓukasz Plewa via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 07:37:00 PDT 2026


================
@@ -177,13 +196,12 @@ class L0CmdListManagerTy {
                            ze_event_handle_t SignalEvent = nullptr,
                            uint32_t NumWaitEvents = 0,
                            ze_event_handle_t *WaitEvents = nullptr) {
-    auto zeCommandListAppendHost = Context.zeCommandListAppendHostFunction;
-    if (!zeCommandListAppendHost)
+    if (!Context.CommandListAppendHostFunction.available())
       return Plugin::error(ErrorCode::UNSUPPORTED,
                            "zeCommandListAppendHostFunction extension is not "
                            "available on this driver");
     std::lock_guard<std::mutex> Lock(Mtx);
-    CALL_ZE_RET_ERROR(zeCommandListAppendHost, CmdList,
+    CALL_ZE_RET_ERROR(Context.CommandListAppendHostFunction, CmdList,
----------------
lplewa wrote:

CALL_ZE_RET_ERROR stringifies Context.CommandListAppendHostFunction instead of the ZE API name.

https://github.com/llvm/llvm-project/pull/218367


More information about the llvm-commits mailing list