]> granicus.if.org Git - clang/commit
[OpenMP] Support for the num_threads-clause on 'target parallel' on the NVPTX device.
authorArpith Chacko Jacob <acjacob@us.ibm.com>
Wed, 25 Jan 2017 01:18:34 +0000 (01:18 +0000)
committerArpith Chacko Jacob <acjacob@us.ibm.com>
Wed, 25 Jan 2017 01:18:34 +0000 (01:18 +0000)
commit8d6d7cadd74e811971f5268595210acb4e9de92f
tree4a4dbb007da120eb6c728b8092b695b66e502ddd
parent440f37958ebf3da5bd5338ec121fe21bd0990ac4
[OpenMP] Support for the num_threads-clause on 'target parallel' on the NVPTX device.

This patch adds support for the Spmd construct 'target parallel' on the
NVPTX device. This involves ignoring the num_threads clause on the device
since the number of threads in this combined construct is already set on
the host through the call to __tgt_target_teams().

Reviewers: ABataev
Differential Revision: https://reviews.llvm.org/D29083

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/CodeGen/CGOpenMPRuntimeNVPTX.h
test/OpenMP/nvptx_target_parallel_num_threads_codegen.cpp [new file with mode: 0644]