This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add environment variable to force monotonic dynamic scheduling
ClosedPublic

Authored by tlwilmar on Jan 22 2021, 12:58 PM.

Details

Summary

This patch introduces a new environment variable to force monotonic behavior for users that absolutely need it. This is in anticipation of a 5.0 spec change that uses non-monotonic behavior for dynamic scheduling by default. Fixes for that and the actual switch are coming soon.

Patch by Johnny Peyton.

Diff Detail

Event Timeline

tlwilmar created this revision.Jan 22 2021, 12:58 PM
tlwilmar requested review of this revision.Jan 22 2021, 12:58 PM
Nawrin added a subscriber: Nawrin.Jan 27 2021, 8:32 AM
Nawrin added inline comments.
openmp/runtime/src/kmp_settings.cpp
4156

Could you please change the comment from hand_thread to force_monotonic?

4161

Same as above

tlwilmar updated this revision to Diff 319903.Jan 28 2021, 9:36 AM

Addressed Nawrin's comment fixes.

Nawrin accepted this revision.Jan 28 2021, 10:46 AM

LGTM

This revision is now accepted and ready to land.Jan 28 2021, 10:46 AM