[Openmp-commits] [openmp] r343477 - [libomptarget-nvptx] Enable asserts in bclib
Jonas Hahnfeld via Openmp-commits
openmp-commits at lists.llvm.org
Mon Oct 1 07:16:55 PDT 2018
Author: hahnfeld
Date: Mon Oct 1 07:16:55 2018
New Revision: 343477
URL: http://llvm.org/viewvc/llvm-project?rev=343477&view=rev
Log:
[libomptarget-nvptx] Enable asserts in bclib
If the user requested LIBOMPTARGET_NVPTX_DEBUG, include asserts in
the bitcode library. Everything else will have very unpleasent
effects because asserts will appear when falling back to the static
library libomptarget-nvptx.a.
Differential Revision: https://reviews.llvm.org/D52701
Modified:
openmp/trunk/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
Modified: openmp/trunk/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/deviceRTLs/nvptx/CMakeLists.txt?rev=343477&r1=343476&r2=343477&view=diff
==============================================================================
--- openmp/trunk/libomptarget/deviceRTLs/nvptx/CMakeLists.txt (original)
+++ openmp/trunk/libomptarget/deviceRTLs/nvptx/CMakeLists.txt Mon Oct 1 07:16:55 2018
@@ -118,7 +118,7 @@ if(LIBOMPTARGET_DEP_CUDA_FOUND)
libomptarget_say("Building CUDA LLVM bitcode offloading device RTL.")
# Set flags for LLVM Bitcode compilation.
- set(bc_flags ${LIBOMPTARGET_NVPTX_SELECTED_CUDA_COMPILER_FLAGS} -DOMPTARGET_NVPTX_TEST=0)
+ set(bc_flags ${LIBOMPTARGET_NVPTX_SELECTED_CUDA_COMPILER_FLAGS})
if(${LIBOMPTARGET_NVPTX_DEBUG})
set(bc_flags ${bc_flags} -DOMPTARGET_NVPTX_DEBUG=-1)
else()
More information about the Openmp-commits
mailing list