]> granicus.if.org Git - clang/commit
[OpenMP] Make OpenMP generated code for the NVIDIA device relocatable by default
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Mon, 7 Aug 2017 20:31:51 +0000 (20:31 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Mon, 7 Aug 2017 20:31:51 +0000 (20:31 +0000)
commit0ba6400cafee473924a09dab6cf4cff64ec0f020
treeef54ef37792a296afdf6999d42ef0964a36f0156
parentd73b9aac80504575ecd5ff6461ff69eb067e349f
[OpenMP] Make OpenMP generated code for the NVIDIA device relocatable by default

Summary: When device offloading is enabled and the device is an NVIDIA GPU, OpenMP target regions must be compiled with relocation enabled by passing the "-c" flag to the PTXAS invocation.

Reviewers: arpith-jacob, caomhin, carlo.bertolli, ABataev, Hahnfeld, jlebar, hfinkel, tstellar

Reviewed By: Hahnfeld

Subscribers: Hahnfeld, rengolin, mkuron, cfe-commits

Differential Revision: https://reviews.llvm.org/D29642

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310300 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Cuda.cpp
test/Driver/openmp-offload.c