[Openmp-commits] [openmp] e23f350 - [libomptarget] Build amdgcn devicertl by default
Jon Chesterfield via Openmp-commits
openmp-commits at lists.llvm.org
Mon Mar 15 16:27:06 PDT 2021
Author: Jon Chesterfield
Date: 2021-03-15T23:17:50Z
New Revision: e23f3502d9a2b1e9abd445130a22cc00f6464da8
URL: https://github.com/llvm/llvm-project/commit/e23f3502d9a2b1e9abd445130a22cc00f6464da8
DIFF: https://github.com/llvm/llvm-project/commit/e23f3502d9a2b1e9abd445130a22cc00f6464da8.diff
LOG: [libomptarget] Build amdgcn devicertl by default
[libomptarget] Build amdgcn devicertl by default
The cmake for this looks for an llvm install and does the right thing when
building as part of enable_runtimes. It will probably do the right thing
in other settings - at least, it won't try to build this with gcc.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D98658
Added:
Modified:
openmp/libomptarget/deviceRTLs/CMakeLists.txt
openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
Removed:
################################################################################
diff --git a/openmp/libomptarget/deviceRTLs/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/CMakeLists.txt
index 3df94eac0727..8bbf987aaf20 100644
--- a/openmp/libomptarget/deviceRTLs/CMakeLists.txt
+++ b/openmp/libomptarget/deviceRTLs/CMakeLists.txt
@@ -10,4 +10,5 @@
#
##===----------------------------------------------------------------------===##
+add_subdirectory(amdgcn)
add_subdirectory(nvptx)
diff --git a/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
index 8ba057206b82..361e052ef499 100644
--- a/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
+++ b/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
@@ -154,6 +154,6 @@ foreach(mcpu ${mcpus})
add_custom_target(lib${libname}-${mcpu} ALL DEPENDS ${bc_libname})
install(FILES ${OUTPUTDIR}/${bc_libname}
- DESTINATION "${OPENMP_INSTALL_LIBDIR}/libdevice"
+ DESTINATION "${OPENMP_INSTALL_LIBDIR}"
)
endforeach()
More information about the Openmp-commits
mailing list