[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)
commitceb422236a9278a5c2bce5cdfc239180550f4961
treeb6ca8233dc12ea8a3a9bc7bde9c35598a4330c88
parentbc30b699b73f44e35c47fa4a9f4ba8cbd219d859
[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

llvm-svn: 310300
clang/lib/Driver/ToolChains/Cuda.cpp
clang/test/Driver/openmp-offload.c