[PATCH] D29083: [OpenMP] Support for the num_threads-clause on 'target parallel' on the NVPTX device.

Arpith Jacob via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 24 06:59:36 PST 2017


arpith-jacob created this revision.
Herald added a subscriber: jholewinski.

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().


https://reviews.llvm.org/D29083

Files:
  lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  lib/CodeGen/CGOpenMPRuntimeNVPTX.h
  test/OpenMP/nvptx_target_parallel_num_threads_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29083.85583.patch
Type: text/x-patch
Size: 7698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170124/4bdeae35/attachment.bin>


More information about the cfe-commits mailing list