Skip to content

Commit a762bfc

Browse files
committedOct 1, 2018
[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 llvm-svn: 343477
1 parent a1100e6 commit a762bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if(LIBOMPTARGET_DEP_CUDA_FOUND)
118118
libomptarget_say("Building CUDA LLVM bitcode offloading device RTL.")
119119

120120
# Set flags for LLVM Bitcode compilation.
121-
set(bc_flags ${LIBOMPTARGET_NVPTX_SELECTED_CUDA_COMPILER_FLAGS} -DOMPTARGET_NVPTX_TEST=0)
121+
set(bc_flags ${LIBOMPTARGET_NVPTX_SELECTED_CUDA_COMPILER_FLAGS})
122122
if(${LIBOMPTARGET_NVPTX_DEBUG})
123123
set(bc_flags ${bc_flags} -DOMPTARGET_NVPTX_DEBUG=-1)
124124
else()

0 commit comments

Comments
 (0)
Please sign in to comment.