[Openmp-commits] [openmp] bafb6f3 - [OpenMP] disable build of old nvptx device runtime

Ye Luo via Openmp-commits openmp-commits at lists.llvm.org
Fri Jan 28 19:26:01 PST 2022


Author: Ye Luo
Date: 2022-01-28T21:25:48-06:00
New Revision: bafb6f3e9cc7e01f4d40f578992658a17302e802

URL: https://github.com/llvm/llvm-project/commit/bafb6f3e9cc7e01f4d40f578992658a17302e802
DIFF: https://github.com/llvm/llvm-project/commit/bafb6f3e9cc7e01f4d40f578992658a17302e802.diff

LOG: [OpenMP] disable build of old nvptx device runtime

Fully respect LIBOMPTARGET_BUILD_NVPTX_BCLIB. There is no CUDA toolchain dependency. Complement D118268.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D118522

Added: 
    

Modified: 
    openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
index bbfa400bb2c8d..9e5263e33a4a8 100644
--- a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
+++ b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
@@ -14,8 +14,8 @@
 set(LIBOMPTARGET_BUILD_NVPTX_BCLIB FALSE CACHE BOOL
   "Whether build NVPTX deviceRTL on CUDA free system.")
 
-if (NOT (LIBOMPTARGET_DEP_CUDA_FOUND OR LIBOMPTARGET_BUILD_NVPTX_BCLIB))
-  libomptarget_say("Not building NVPTX deviceRTL by default on CUDA free system.")
+if (NOT LIBOMPTARGET_BUILD_NVPTX_BCLIB)
+  libomptarget_say("Not building NVPTX deviceRTL: Disabled by LIBOMPTARGET_BUILD_NVPTX_BCLIB")
   return()
 endif()
 


        


More information about the Openmp-commits mailing list