[Openmp-commits] [PATCH] D102229: [libomptarget][nfc] Add hook to easily disable building amdgcn bclib
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue May 11 09:23:23 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG72995a4bdf7d: [libomptarget][nfc] Add hook to easily disable building amdgcn bclib (authored by JonChesterfield).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102229/new/
https://reviews.llvm.org/D102229
Files:
openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
Index: openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
===================================================================
--- openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
+++ openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
@@ -6,10 +6,18 @@
#
##===----------------------------------------------------------------------===##
#
-# Build the AMDGCN Device RTL if the ROCM tools are available
+# Build the AMDGCN Device RTL bitcode library using clang -ffreestanding
#
##===----------------------------------------------------------------------===##
+set(LIBOMPTARGET_BUILD_AMDGCN_BCLIB TRUE CACHE BOOL
+ "Can be set to false to disable building this library.")
+
+if (NOT LIBOMPTARGET_BUILD_AMDGCN_BCLIB)
+ libomptarget_say("Not building AMDGCN device RTL: Disabled by LIBOMPTARGET_BUILD_AMDGCN_BCLIB")
+ return()
+endif()
+
# Copied from nvptx CMakeLists
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "x86_64")
set(aux_triple x86_64-unknown-linux-gnu)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102229.344436.patch
Type: text/x-patch
Size: 977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210511/e4854693/attachment.bin>
More information about the Openmp-commits
mailing list