[Openmp-commits] [PATCH] D58409: [OpenMP][libomptarget] New reduction scheme for team reductions
Gheorghe-Teodor Bercea via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Feb 19 14:56:12 PST 2019
gtbercea created this revision.
gtbercea added reviewers: ABataev, caomhin.
Herald added subscribers: openmp-commits, jdoerfert, jfb, guansong.
Herald added a project: OpenMP.
gtbercea edited the summary of this revision.
This patch adds a more sophisticated team reduction scheme to the OpenMP libomptarget-nvptx runtime.
The scheme uses a fixed size global memory buffer whose length can be adjusted via compiler flag:
The global buffer is a structure of arrays (with default size of 1024 each and controlled by the above flag), one array for each reduction variable.
Values in the buffer are processed by the last team to finish executing the body of the target region.
In addition to adding support for the new flag, the compiler also emits special functions used for the reduction of the intermediate reduction values. These changes will be added in a separate compiler patch following this one.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6603 bytes
Desc: not available
More information about the Openmp-commits