summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-02-02 10:58:16 -0600
committerTobias Hieta <tobias@hieta.se>2023-02-14 09:00:25 +0100
commit6d859df46e93e04bd7a4f90d9a9056763998f638 (patch)
tree093f4ca5134a524423f60ac4a123c80d03b15b58
parenteaca569bb32634dcdab1a28c5435986698cc418b (diff)
downloadllvm-6d859df46e93e04bd7a4f90d9a9056763998f638.tar.gz
[Libomptarget] Remove dependency on the DeviceRTL from the GPU plugins
The GPU plugins have a dependency on the device libraries. Sometimes we cannot build the device libraries because the user does not have a valid `clang` to use or it was explicitly disabled. Currently this leads to a transitive failure because we cannot meet this dependency. This patch simply removes that dependency. Fixes https://github.com/llvm/llvm-project/issues/60457 Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D143196 (cherry picked from commit 9f650ae779b4d7e033f5f17290aad50e935424d2)
-rw-r--r--openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt1
-rw-r--r--openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt1
-rw-r--r--openmp/libomptarget/plugins/amdgpu/CMakeLists.txt1
-rw-r--r--openmp/libomptarget/plugins/cuda/CMakeLists.txt1
4 files changed, 0 insertions, 4 deletions
diff --git a/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt b/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt
index b469850297ec..8f234eebe1e4 100644
--- a/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt
+++ b/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt
@@ -90,7 +90,6 @@ add_llvm_library(omptarget.rtl.amdgpu.nextgen SHARED
NO_INSTALL_RPATH
)
-add_dependencies(omptarget.rtl.amdgpu.nextgen omptarget.devicertl.amdgpu)
target_include_directories(
omptarget.rtl.amdgpu.nextgen
diff --git a/openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt b/openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt
index 02cf47b405ca..da19ec3e7d2d 100644
--- a/openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt
+++ b/openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt
@@ -85,7 +85,6 @@ else()
NO_INSTALL_RPATH
)
endif()
-add_dependencies(omptarget.rtl.cuda.nextgen omptarget.devicertl.nvptx)
# Install plugin under the lib destination folder.
install(TARGETS omptarget.rtl.cuda.nextgen LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")
diff --git a/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt b/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
index 4d8f9050fd00..1619f1e451af 100644
--- a/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
+++ b/openmp/libomptarget/plugins/amdgpu/CMakeLists.txt
@@ -90,7 +90,6 @@ add_llvm_library(omptarget.rtl.amdgpu SHARED
NO_INSTALL_RPATH
)
-add_dependencies(omptarget.rtl.amdgpu omptarget.devicertl.amdgpu)
target_include_directories(
omptarget.rtl.amdgpu
diff --git a/openmp/libomptarget/plugins/cuda/CMakeLists.txt b/openmp/libomptarget/plugins/cuda/CMakeLists.txt
index 520c6b0365de..6d0b767cecbb 100644
--- a/openmp/libomptarget/plugins/cuda/CMakeLists.txt
+++ b/openmp/libomptarget/plugins/cuda/CMakeLists.txt
@@ -82,7 +82,6 @@ else()
NO_INSTALL_RPATH
)
endif()
-add_dependencies(omptarget.rtl.cuda omptarget.devicertl.nvptx)
# Install plugin under the lib destination folder.
install(TARGETS omptarget.rtl.cuda LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")