summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorArpith Chacko Jacob <acjacob@us.ibm.com>2017-02-16 16:48:49 +0000
committerArpith Chacko Jacob <acjacob@us.ibm.com>2017-02-16 16:48:49 +0000
commitfc711b1f4772dd14ce679176e499683ee7c8642f (patch)
treee6d2cebbc6aa9445718eeec1f51aa74359bc6395 /llvm/lib/CodeGen
parent101e8fb1f3b722f6f545cc0755c0186584aa5ab4 (diff)
downloadbcm5719-llvm-fc711b1f4772dd14ce679176e499683ee7c8642f.tar.gz
bcm5719-llvm-fc711b1f4772dd14ce679176e499683ee7c8642f.zip
[OpenMP] Teams reduction on the NVPTX device.
This patch implements codegen for the reduction clause on any teams construct for elementary data types. It builds on parallel reductions on the GPU. Subsequently, the team master writes to a unique location in a global memory scratchpad. The last team to do so loads and reduces this array to calculate the final result. This patch emits two helper functions that are used by the OpenMP runtime on the GPU to perform reductions across teams. Patch by Tian Jin in collaboration with Arpith Jacob Reviewers: ABataev Differential Revision: https://reviews.llvm.org/D29879 llvm-svn: 295335
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud