[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:
Guansong Zhang 2018-04-03 15:01:34 +00:00
parent 2fc3b18922
commit e47fbc9da8
1 changed files with 1 additions and 0 deletions

View File

@ -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}