This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] host rtl: fixed bug in implementation of distribute construct.
ClosedPublic

Authored by AndreyChurbanov on Jan 27 2022, 9:31 AM.

Details

Summary

When the "target teams distribute" construct located inside parallel region,
scheduler mistakenly shared to loop iterations between teams from different target regions.
The patch fixes this problem.

Diff Detail

Event Timeline

AndreyChurbanov requested review of this revision.Jan 27 2022, 9:31 AM

According to the pre-merge results: https://buildkite.com/llvm-project/premerge-checks/builds/76212#f61fe509-f800-4780-9571-cfe70624ba18, the test still depends on libomptarget even though it is run on the host. I think the test may have to go into the libomptarget/test directory. @jdoerfert could you advise on integrating the test?

Removed target triple from test compilation.
This eliminates the dependency on libomptarget.

jlpeyton accepted this revision.Feb 10 2022, 1:58 PM

Ah ok that works for me!

This revision is now accepted and ready to land.Feb 10 2022, 1:58 PM