[all-commits] [llvm/llvm-project] e7535f: [OpenMP][NVPTX] Drop dependence on CUDA to build N...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Tue Jan 26 17:26:02 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e7535f8fedb5f355c332df9f2a87ebd61c82d983
https://github.com/llvm/llvm-project/commit/e7535f8fedb5f355c332df9f2a87ebd61c82d983
Author: Shilei Tian <tianshilei1992 at gmail.com>
Date: 2021-01-26 (Tue, 26 Jan 2021)
Changed paths:
M openmp/README.rst
M openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake
R openmp/libomptarget/cmake/Modules/LibomptargetNVPTXBitcodeLibrary.cmake
M openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
Log Message:
-----------
[OpenMP][NVPTX] Drop dependence on CUDA to build NVPTX `deviceRTLs`
With D94745, we no longer use CUDA SDK to compile `deviceRTLs`. Therefore,
many CMake code in the project is useless. This patch cleans up unnecessary code
and also drops the requirement to build NVPTX `deviceRTLs`. CUDA detection is
still being used however to determine whether we need to involve the tests. Auto
detection of compute capability is enabled by default and can be disabled by
setting CMake variable `LIBOMPTARGET_NVPTX_AUTODETECT_COMPUTE_CAPABILITY=OFF`.
If auto detection is enabled, and CUDA is also valid, it will only build the
bitcode library for the detected version; otherwise, all variants supported will
be generated. One drawback of this patch is, we now generate 96 variants of
bitcode library, and totally 1485 files to be built with a clean build on a
non-CUDA system. `LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=""` can be used to
disable building NVPTX `deviceRTLs`.
Reviewed By: JonChesterfield
Differential Revision: https://reviews.llvm.org/D95466
More information about the All-commits
mailing list