diff options
author | Guansong Zhang <zhang.guansong@gmail.com> | 2018-04-03 15:01:34 +0000 |
---|---|---|
committer | Guansong Zhang <zhang.guansong@gmail.com> | 2018-04-03 15:01:34 +0000 |
commit | e47fbc9da802372f333a065c8ad9b2948dbd5766 (patch) | |
tree | 309ce77214b8b37290d5d91a208f8417921917ba | |
parent | 2fc3b18922e2454a2ad2b68de348f8b846456652 (diff) | |
download | bcm5719-llvm-e47fbc9da802372f333a065c8ad9b2948dbd5766.tar.gz bcm5719-llvm-e47fbc9da802372f333a065c8ad9b2948dbd5766.zip |
[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
-rw-r--r-- | openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt index 312cc3de0f3..757b5bcfac0 100644 --- a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt +++ b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt @@ -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} |