diff options
author | Carlo Bertolli <cbertol@us.ibm.com> | 2018-02-28 20:48:35 +0000 |
---|---|---|
committer | Carlo Bertolli <cbertol@us.ibm.com> | 2018-02-28 20:48:35 +0000 |
commit | c6c9776cf99dec199dfe2790b25bd2bb8915ebe5 (patch) | |
tree | 317dd88bb75d93a9150e119f776a78a7ffeec5e7 /lib/Frontend/CompilerInvocation.cpp | |
parent | ebeb737dbea833866a6cbfa66a9876083156baad (diff) | |
download | clang-c6c9776cf99dec199dfe2790b25bd2bb8915ebe5.tar.gz |
[OpenMP] Extend NVPTX SPMD implementation of combined constructs
Differential Revision: https://reviews.llvm.org/D43852
This patch extends the SPMD implementation to all target constructs and guards this implementation under a new flag.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index a217d356dc..7e060bbcdf 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -2526,6 +2526,10 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, << Opts.OMPHostIRFile; } + // set CUDA mode for OpenMP target NVPTX if specified in options + Opts.OpenMPCUDAMode = Opts.OpenMPIsDevice && T.isNVPTX() && + Args.hasArg(options::OPT_fopenmp_cuda_mode); + // Record whether the __DEPRECATED define was requested. Opts.Deprecated = Args.hasFlag(OPT_fdeprecated_macro, OPT_fno_deprecated_macro, |