Skip to content

Commit ff384bb

Browse files
[SYCL] Enable OpenCL and Level Zero plugins if SYCL_ENABLE_PLUGINS is undefined (#6009)
These changes make SYCL_ENABLE_PLUGINS enable both the OpenCL and the Level Zero PI plugins if it is unset. This is closer to the behavior exhibited prior to #5799. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent e91c899 commit ff384bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sycl/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ if (NOT SYCL_COVERAGE_PATH)
1414
set(SYCL_COVERAGE_PATH "${CMAKE_CURRENT_BINARY_DIR}/profiles")
1515
endif()
1616

17+
# If SYCL_ENABLE_PLUGINS is undefined, we default to enabling OpenCL and Level
18+
# Zero plugins.
19+
if (NOT DEFINED SYCL_ENABLE_PLUGINS)
20+
set(SYCL_ENABLE_PLUGINS "opencl;level_zero")
21+
endif()
22+
1723
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
1824
include(AddSYCLExecutable)
1925
include(AddSYCL)

0 commit comments

Comments
 (0)