This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP][NVPTX]Fix dynamic scheduling.

Authored by ABataev on Jan 4 2019, 1:17 PM.



Previous implementation may cause the runtime crash when the number of
teams is > 1024. Patch fixes this problem + reduces number of the atomic
operations by 32 times.

Event Timeline

ABataev created this revision.Jan 4 2019, 1:17 PM
grokos accepted this revision.Jan 4 2019, 7:48 PM

Nice approach to optimizing the degree of collisions of atomic adds. LGTM.

This revision is now accepted and ready to land.Jan 4 2019, 7:48 PM
This revision was automatically updated to reflect the committed changes.