]> granicus.if.org Git - clang/commit
[OpenMP] Add flag for specifying the target device architecture for OpenMP device...
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Mon, 7 Aug 2017 15:39:11 +0000 (15:39 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Mon, 7 Aug 2017 15:39:11 +0000 (15:39 +0000)
commit931925b51369dbcffff1ea5b2b0ae5814486daeb
treec0e418a55e061734b0a6f0441d18d48865bfe175
parentf9faef8fd4d18005bc4eade77e012bf7f4e001ff
[OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading

Summary:
OpenMP has the ability to offload target regions to devices which may have different architectures.

A new -fopenmp-target-arch flag is introduced to specify the device architecture.

In this patch I use the new flag to specify the compute capability of the underlying NVIDIA architecture for the OpenMP offloading CUDA tool chain.

Only a host-offloading test is provided since full device offloading capability will only be available when [[ https://reviews.llvm.org/D29654 | D29654 ]] lands.

Reviewers: hfinkel, Hahnfeld, carlo.bertolli, caomhin, ABataev

Reviewed By: hfinkel

Subscribers: guansong, cfe-commits

Tags: #openmp

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310263 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Driver/Options.td
include/clang/Driver/ToolChain.h
lib/Driver/Compilation.cpp
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains/Cuda.cpp
test/Driver/openmp-offload.c