[Openmp-commits] [openmp] cc72df2 - [Libomptarget] Add the same to the other AMD plugin
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Sat Feb 4 05:47:22 PST 2023
Author: Samuel Thibault
Date: 2023-02-04T07:46:25-06:00
New Revision: cc72df2b7bf091d1c7109460e1ad6656d782eb23
URL: https://github.com/llvm/llvm-project/commit/cc72df2b7bf091d1c7109460e1ad6656d782eb23
DIFF: https://github.com/llvm/llvm-project/commit/cc72df2b7bf091d1c7109460e1ad6656d782eb23.diff
LOG: [Libomptarget] Add the same to the other AMD plugin
Summary:
The previous patch also needed to apply this to the other AMDGPU plugin,
this will be removed soon but it should be correct while it's here at
least.
Added:
Modified:
openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
Removed:
################################################################################
diff --git a/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt b/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
index dca01b4644940..2d7d0ca0ce963 100644
--- a/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
+++ b/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
@@ -22,7 +22,7 @@ endif()
# 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")
+if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(ppc64le)|(aarch64)$" AND CMAKE_SYSTEM_NAME MATCHES "Linux"))
libomptarget_say("Not building AMDGPU plugin: only support AMDGPU in Linux x86_64, ppc64le, or aarch64 hosts")
return()
endif()
More information about the Openmp-commits
mailing list