[llvm] [OFFLOAD] Add level_zero to list of default plugins (PR #210070)
Alex Duran via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 07:27:25 PDT 2026
https://github.com/adurang created https://github.com/llvm/llvm-project/pull/210070
Adds level_zero to the list of LIBOMPTARGET_ALL_PLUGIN_TARGETS which are build by default.
>From b5fb6c5a078ed5b498f94294f2e23e44890ad379 Mon Sep 17 00:00:00 2001
From: "Duran, Alex" <alejandro.duran at intel.com>
Date: Thu, 16 Jul 2026 07:14:04 -0700
Subject: [PATCH] [OFFLOAD] Add level_zero to list of default plugins
---
offload/CMakeLists.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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})
More information about the llvm-commits
mailing list