[Openmp-commits] [PATCH] D44992: [OpenMP] enable bc file compilation using the latest clang

Guansong Zhang via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Mar 28 11:44:20 PDT 2018


guansong created this revision.
guansong added a reviewer: grokos.
guansong added a project: OpenMP.
Herald added a subscriber: mgorny.

adding cuda-rdc flag to allow extern global data


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D44992

Files:
  libomptarget/deviceRTLs/nvptx/CMakeLists.txt


Index: libomptarget/deviceRTLs/nvptx/CMakeLists.txt
===================================================================
--- libomptarget/deviceRTLs/nvptx/CMakeLists.txt
+++ libomptarget/deviceRTLs/nvptx/CMakeLists.txt
@@ -145,6 +145,7 @@
       # 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}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44992.140114.patch
Type: text/x-patch
Size: 470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180328/7525dce3/attachment.bin>


More information about the Openmp-commits mailing list