forked from OSchip/llvm-project
[OpenMP] enable bc file compilation using the latest clang
Summary: adding cuda-rdc flag to allow extern global data Reviewers: grokos Reviewed By: grokos Subscribers: gregrodgers, mgorny, openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D44992 llvm-svn: 329072
This commit is contained in:
parent
2fc3b18922
commit
e47fbc9da8
|
@ -145,6 +145,7 @@ if(LIBOMPTARGET_DEP_CUDA_FOUND)
|
|||
# no other compiler capable of generating bitcode from cuda sources.
|
||||
set(CUDA_FLAGS
|
||||
-emit-llvm
|
||||
-fcuda-rdc
|
||||
-O1
|
||||
-Xclang -target-feature
|
||||
-Xclang +${CUDA_PTX_VERSION}
|
||||
|
|
Loading…
Reference in New Issue