Page MenuHomePhabricator

[OpenMP][Tests] fix data race in a OpenMP runtime test
ClosedPublic

Authored by protze.joachim on Jun 14 2020, 6:51 AM.

Details

Summary

Aggressive optimization might translate

while(block);

to

while(tid!=0);

The atomic read/write adds the necessary flushes, so that the worker threads will finally see the update.

Diff Detail

Event Timeline

protze.joachim created this revision.Jun 14 2020, 6:51 AM
This revision is now accepted and ready to land.Jun 14 2020, 1:25 PM
This revision was automatically updated to reflect the committed changes.