File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,13 +151,19 @@ if (NOT LIBOMPTARGET_LLVM_INCLUDE_DIRS)
151151 message (FATAL_ERROR "Missing definition for LIBOMPTARGET_LLVM_INCLUDE_DIRS" )
152152endif ()
153153
154+ if (DEFINED LIBOMPTARGET_BUILD_CUDA_PLUGIN OR
155+ DEFINED LIBOMPTARGET_BUILD_AMDGPU_PLUGIN)
156+ message (WARNING "Option removed, use 'LIBOMPTARGET_PLUGINS_TO_BUILD' instead" )
157+ endif ()
158+
154159set (LIBOMPTARGET_ALL_PLUGIN_TARGETS amdgpu cuda host)
155160set (LIBOMPTARGET_PLUGINS_TO_BUILD "all" CACHE STRING
156161 "Semicolon-separated list of plugins to use: cuda, amdgpu, host or \" all\" ." )
157162
158163if (LIBOMPTARGET_PLUGINS_TO_BUILD STREQUAL "all" )
159164 set (LIBOMPTARGET_PLUGINS_TO_BUILD ${LIBOMPTARGET_ALL_PLUGIN_TARGETS} )
160165endif ()
166+ message ("Building with support for ${LIBOMPTARGET_PLUGINS_TO_BUILD} plugins" )
161167
162168set (LIBOMPTARGET_ENUM_PLUGIN_TARGETS "" )
163169foreach (plugin IN LISTS LIBOMPTARGET_PLUGINS_TO_BUILD)
Original file line number Diff line number Diff line change 1212##===----------------------------------------------------------------------===##
1313
1414################################################################################
15- set (LIBOMPTARGET_BUILD_AMDGPU_PLUGIN TRUE CACHE BOOL
16- "Whether to build AMDGPU plugin" )
17- if (NOT LIBOMPTARGET_BUILD_AMDGPU_PLUGIN)
18- libomptarget_say ("Not building AMDGPU NextGen offloading plugin: LIBOMPTARGET_BUILD_AMDGPU_PLUGIN is false" )
19- return ()
20- endif ()
21-
2215# as of rocm-3.7, hsa is installed with cmake packages and kmt is found via hsa
2316find_package (hsa-runtime64 QUIET 1.2.0 HINTS ${CMAKE_INSTALL_PREFIX} PATHS /opt/rocm )
2417
Original file line number Diff line number Diff line change 99# Build a plugin for a CUDA machine if available.
1010#
1111##===----------------------------------------------------------------------===##
12- set (LIBOMPTARGET_BUILD_CUDA_PLUGIN TRUE CACHE BOOL
13- "Whether to build CUDA plugin" )
14- if (NOT LIBOMPTARGET_BUILD_CUDA_PLUGIN)
15- libomptarget_say ("Not building CUDA NextGen offloading plugin: LIBOMPTARGET_BUILD_CUDA_PLUGIN is false" )
16- return ()
17- endif ()
18-
1912if (NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux" ))
2013 libomptarget_say ("Not building CUDA NextGen offloading plugin: only support CUDA in Linux x86_64, ppc64le, or aarch64 hosts." )
2114 return ()
You can’t perform that action at this time.
0 commit comments