summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGOpenMPRuntime.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-09-21 14:11:41 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-09-21 14:11:41 +0000
commit022bf16b417f224eedfdee4d2927df9250956cec (patch)
treebcbc7a955692477927260058c2506b0417ee4258 /clang/lib/CodeGen/CGOpenMPRuntime.cpp
parent8171bd8e0f038fb72b39888fc34d39ce19804d40 (diff)
downloadbcm5719-llvm-022bf16b417f224eedfdee4d2927df9250956cec.tar.gz
bcm5719-llvm-022bf16b417f224eedfdee4d2927df9250956cec.zip
[OPENMP][NVPTX] Add support for lastprivates/reductions handling in SPMD constructs with lightweight runtime.
Summary: We need the support for per-team shared variables to support codegen for lastprivates/reductions. Patch adds this support by using shared memory if the total size of the reductions/lastprivates is <= 128 bytes, then pre-allocated buffer in global memory if size is <= 4K bytes,or uses malloc/free, otherwise. Reviewers: gtbercea, kkwli0, grokos Subscribers: guansong, openmp-commits Differential Revision: https://reviews.llvm.org/D51875 llvm-svn: 342737
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud