Skip to content

Commit

Permalink
Add __CUDADEVRT_INTERNAL__ define to bitcode generation, needed to av…
Browse files Browse the repository at this point in the history
…oid duplicate cudaMalloc symbols with CUDA9+ (#1271)

Co-authored-by: Declan Russell <[email protected]>
  • Loading branch information
DeclanRussell and DeclanRussell authored Oct 16, 2020
1 parent 27152ad commit 00e56af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmake/cuda_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function ( MAKE_CUDA_BITCODE src suffix generated_bc extra_clang_args )
"-I${ILMBASE_INCLUDE_DIR}"
"-I${Boost_INCLUDE_DIRS}"
${LLVM_COMPILE_FLAGS} ${CUDA_LIB_FLAGS}
-D__CUDACC__ -DOSL_COMPILING_TO_BITCODE=1 -DNDEBUG -DOIIO_NO_SSE
-D__CUDACC__ -DOSL_COMPILING_TO_BITCODE=1 -DNDEBUG -DOIIO_NO_SSE -D__CUDADEVRT_INTERNAL__
--language=cuda --cuda-device-only --cuda-gpu-arch=${CUDA_TARGET_ARCH}
-Wno-deprecated-register -Wno-format-security
-O3 -fno-math-errno -ffast-math -S -emit-llvm ${extra_clang_args}
Expand Down

0 comments on commit 00e56af

Please sign in to comment.