Page MenuHomePhabricator

[OpenMP] Avoid calling `isSPMDMode` during RT initialization
ClosedPublic

Authored by jdoerfert on Oct 7 2021, 8:27 PM.

Details

Summary

Until we hit the first barrier we should not call mapping::isSPMDMode
with all threads. Instead, we now have (and use during initialization) a
mapping::isMainThreadInGenericMode overload that takes the known
SPMD-mode state and one that queries it.

Event Timeline

jdoerfert created this revision.Oct 7 2021, 8:27 PM
jdoerfert requested review of this revision.Oct 7 2021, 8:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2021, 8:27 PM
Herald added a subscriber: sstefan1. · View Herald Transcript
tianshilei1992 accepted this revision.Oct 8 2021, 8:14 AM
This revision is now accepted and ready to land.Oct 8 2021, 8:14 AM
This revision was landed with ongoing or failed builds.Oct 8 2021, 7:00 PM
This revision was automatically updated to reflect the committed changes.