[llvm] [offload] Fix compatibility for level_zero 25.22.33944 (PR #214215)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 05:48:57 PDT 2026
================
@@ -110,6 +113,23 @@ DLWRAP_FINALIZE()
#define DEBUG_PREFIX "TARGET " GETNAME(TARGET_NAME) " RTL"
#endif
+// Macro used to make APIs that are returning
+// ZE_RESULT_ERROR_UNSUPPORTED_FEATURE nullptr in dlwrap.
+#define INVALIDATE_LEVEL_ZERO_API(function) \
+ if (dlwrap::function##_loaded() && \
+ api_helper::callDefaulted(function) == \
----------------
blazej-smorawski wrote:
I see it works correct, both with and without l0 validation flags. I could not find any information on the level zero docs about it.
https://github.com/llvm/llvm-project/pull/214215
More information about the llvm-commits
mailing list