This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP][NVPTX]Basic support for reductions across the teams.
ClosedPublic

Authored by ABataev on Nov 27 2018, 12:45 PM.

Details

Summary

Added functions kmpc_nvptx_teams_reduce_nowait_simple and
kmpc_nvptx_teams_end_reduce_nowait_simple to implement basic support
for reductions across the teams.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Nov 27 2018, 12:45 PM
This revision is now accepted and ready to land.Nov 27 2018, 12:54 PM
This revision was automatically updated to reflect the committed changes.
kkwli0 added inline comments.Nov 27 2018, 1:47 PM
libomptarget/deviceRTLs/nvptx/src/reduction.cu
435 ↗(On Diff #175555)

Why is global_tid being passed in but not used?

446 ↗(On Diff #175555)

Same as above, loc and global_tid are not used in the routine?

ABataev marked an inline comment as done.Nov 27 2018, 2:49 PM
ABataev added inline comments.
libomptarget/deviceRTLs/nvptx/src/reduction.cu
435 ↗(On Diff #175555)

They are going to be used in future, at least in some diagnostics.