summaryrefslogtreecommitdiff
path: root/offload/plugins-nextgen/amdgpu
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-05-23 08:06:41 -0500
committerGitHub <noreply@github.com>2024-05-23 08:06:41 -0500
commit300e5b91144249a5b142b02d6331fcb33e13cf1d (patch)
treea47b93f48d9895bbcefe98afae5d89dc534a4683 /offload/plugins-nextgen/amdgpu
parent4feae05c6abda364a9295aecfa600d7d4e7dfeb6 (diff)
[Offload] Fix enabling plugins on unsupported platforms (#93186)
Summary: Certain plugins can only be built on specific platforms. Previously this didn't cause issues becaues each one was handled independently. However, now that we link these all directly they need to be in a CMake list. Furthermore we use this list to generate a config file. For this reason these checks are moved to where we normalize the support. Fixes: https://github.com/llvm/llvm-project/issues/93183
Diffstat (limited to 'offload/plugins-nextgen/amdgpu')
-rw-r--r--offload/plugins-nextgen/amdgpu/CMakeLists.txt5
1 files changed, 0 insertions, 5 deletions
diff --git a/offload/plugins-nextgen/amdgpu/CMakeLists.txt b/offload/plugins-nextgen/amdgpu/CMakeLists.txt
index cb9ab8c24084..47cd2feefc72 100644
--- a/offload/plugins-nextgen/amdgpu/CMakeLists.txt
+++ b/offload/plugins-nextgen/amdgpu/CMakeLists.txt
@@ -1,11 +1,6 @@
# As of rocm-3.7, hsa is installed with cmake packages and kmt is found via hsa
find_package(hsa-runtime64 QUIET 1.2.0 HINTS ${CMAKE_INSTALL_PREFIX} PATHS /opt/rocm)
-if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
- message(STATUS "Not building AMDGPU NextGen plugin: only support AMDGPU in Linux x86_64, ppc64le, or aarch64 hosts")
- return()
-endif()
-
# Create the library and add the default arguments.
add_target_library(omptarget.rtl.amdgpu AMDGPU)