diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-09-21 14:11:41 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-09-21 14:11:41 +0000 |
commit | 022bf16b417f224eedfdee4d2927df9250956cec (patch) | |
tree | bcbc7a955692477927260058c2506b0417ee4258 /clang/lib/CodeGen/CGCall.h | |
parent | 8171bd8e0f038fb72b39888fc34d39ce19804d40 (diff) | |
download | bcm5719-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/CGCall.h')
0 files changed, 0 insertions, 0 deletions