Skip to content

Commit 6d859df

Browse files
jhuber6tru
authored andcommitted
[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 #60457 Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D143196 (cherry picked from commit 9f650ae)
1 parent eaca569 commit 6d859df

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ add_llvm_library(omptarget.rtl.amdgpu.nextgen SHARED
9090

9191
NO_INSTALL_RPATH
9292
)
93-
add_dependencies(omptarget.rtl.amdgpu.nextgen omptarget.devicertl.amdgpu)
9493

9594
target_include_directories(
9695
omptarget.rtl.amdgpu.nextgen

openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ else()
8585
NO_INSTALL_RPATH
8686
)
8787
endif()
88-
add_dependencies(omptarget.rtl.cuda.nextgen omptarget.devicertl.nvptx)
8988

9089
# Install plugin under the lib destination folder.
9190
install(TARGETS omptarget.rtl.cuda.nextgen LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")

openmp/libomptarget/plugins/amdgpu/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ add_llvm_library(omptarget.rtl.amdgpu SHARED
9090

9191
NO_INSTALL_RPATH
9292
)
93-
add_dependencies(omptarget.rtl.amdgpu omptarget.devicertl.amdgpu)
9493

9594
target_include_directories(
9695
omptarget.rtl.amdgpu

openmp/libomptarget/plugins/cuda/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ else()
8282
NO_INSTALL_RPATH
8383
)
8484
endif()
85-
add_dependencies(omptarget.rtl.cuda omptarget.devicertl.nvptx)
8685

8786
# Install plugin under the lib destination folder.
8887
install(TARGETS omptarget.rtl.cuda LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")

0 commit comments

Comments
 (0)