[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
This commit is contained in:
Ye Luo 2022-01-28 21:24:29 -06:00
parent 521205c084
commit bafb6f3e9c
1 changed files with 2 additions and 2 deletions

View File

@ -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()