[llvm] [OFFLOAD] Add level_zero to list of default plugins (PR #210070)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 07:28:07 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-offload

Author: Alex Duran (adurang)

<details>
<summary>Changes</summary>

Adds level_zero to the list of LIBOMPTARGET_ALL_PLUGIN_TARGETS which are build by default.

---
Full diff: https://github.com/llvm/llvm-project/pull/210070.diff


1 Files Affected:

- (modified) offload/CMakeLists.txt (+3-3) 


``````````diff
diff --git a/offload/CMakeLists.txt b/offload/CMakeLists.txt
index ce6ab9452d518..b709ff3c71ca9 100644
--- a/offload/CMakeLists.txt
+++ b/offload/CMakeLists.txt
@@ -144,7 +144,7 @@ if(DEFINED LIBOMPTARGET_BUILD_CUDA_PLUGIN OR
 endif()
 
 if(WIN32)
-  set(LIBOMPTARGET_ALL_PLUGIN_TARGETS "")
+  set(LIBOMPTARGET_ALL_PLUGIN_TARGETS level_zero)
 
   set(LIBOMPTARGET_PLUGINS_TO_BUILD "" CACHE STRING
       "Semicolon-separated list of plugins to use: level_zero or \"all\".")
@@ -159,9 +159,9 @@ if(WIN32)
     endif()
   endforeach()
 else()
-  set(LIBOMPTARGET_ALL_PLUGIN_TARGETS amdgpu cuda)
+  set(LIBOMPTARGET_ALL_PLUGIN_TARGETS amdgpu cuda level_zero)
   set(LIBOMPTARGET_PLUGINS_TO_BUILD "all" CACHE STRING
-      "Semicolon-separated list of plugins to use: cuda, amdgpu or \"all\".")
+      "Semicolon-separated list of plugins to use: cuda, amdgpu, level_zero or \"all\".")
 
   if(LIBOMPTARGET_PLUGINS_TO_BUILD STREQUAL "all")
     set(LIBOMPTARGET_PLUGINS_TO_BUILD ${LIBOMPTARGET_ALL_PLUGIN_TARGETS})

``````````

</details>


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


More information about the llvm-commits mailing list