This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Insert missing variable update inside loop
ClosedPublic

Authored by jlpeyton on May 22 2023, 12:16 PM.

Details

Summary

A loop within task priority code did not have necessary update of ntasks variable which leads to hangs if two threads collide when both attempt to execute the __kmp_atomic_compare_store()

Fixes: https://github.com/llvm/llvm-project/issues/62867

Diff Detail

Event Timeline

jlpeyton created this revision.May 22 2023, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 12:17 PM
jlpeyton requested review of this revision.May 22 2023, 12:17 PM
jdoerfert accepted this revision.May 22 2023, 11:07 PM
This revision is now accepted and ready to land.May 22 2023, 11:07 PM
This revision was automatically updated to reflect the committed changes.