File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -151,13 +151,19 @@ if (NOT LIBOMPTARGET_LLVM_INCLUDE_DIRS)
151
151
message (FATAL_ERROR "Missing definition for LIBOMPTARGET_LLVM_INCLUDE_DIRS" )
152
152
endif ()
153
153
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
+
154
159
set (LIBOMPTARGET_ALL_PLUGIN_TARGETS amdgpu cuda host )
155
160
set (LIBOMPTARGET_PLUGINS_TO_BUILD "all" CACHE STRING
156
161
"Semicolon-separated list of plugins to use: cuda, amdgpu, host or \" all\" ." )
157
162
158
163
if (LIBOMPTARGET_PLUGINS_TO_BUILD STREQUAL "all" )
159
164
set (LIBOMPTARGET_PLUGINS_TO_BUILD ${LIBOMPTARGET_ALL_PLUGIN_TARGETS} )
160
165
endif ()
166
+ message ("Building with support for ${LIBOMPTARGET_PLUGINS_TO_BUILD} plugins" )
161
167
162
168
set (LIBOMPTARGET_ENUM_PLUGIN_TARGETS "" )
163
169
foreach (plugin IN LISTS LIBOMPTARGET_PLUGINS_TO_BUILD )
Original file line number Diff line number Diff line change 12
12
##===----------------------------------------------------------------------===##
13
13
14
14
################################################################################
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
-
22
15
# as of rocm-3.7, hsa is installed with cmake packages and kmt is found via hsa
23
16
find_package (hsa-runtime64 QUIET 1.2.0 HINTS ${CMAKE_INSTALL_PREFIX} PATHS /opt/rocm )
24
17
Original file line number Diff line number Diff line change 9
9
# Build a plugin for a CUDA machine if available.
10
10
#
11
11
##===----------------------------------------------------------------------===##
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
-
19
12
if (NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux" ))
20
13
libomptarget_say ("Not building CUDA NextGen offloading plugin: only support CUDA in Linux x86_64, ppc64le, or aarch64 hosts." )
21
14
return ()
You can’t perform that action at this time.
0 commit comments