Page MenuHomePhabricator

[OpenMP] Lazily assign root affinity

Authored by jlpeyton on Jun 3 2021, 9:08 AM.



Lazily set affinity for root threads. Previously, the root thread executing middle initialization would attempt to assign affinity to other existing root threads. This was not working properly as the set_system_affinity() function wasn't setting the affinity for the target thread. Instead, the middle initialization, which contains affinity initialization, thread was resetting the its own affinity using the target thread's affinity mask.

Diff Detail

Event Timeline

jlpeyton created this revision.Jun 3 2021, 9:08 AM
jlpeyton requested review of this revision.Jun 3 2021, 9:08 AM
This revision is now accepted and ready to land.Jun 9 2021, 6:13 AM
This revision was landed with ongoing or failed builds.Jun 15 2021, 2:21 PM
This revision was automatically updated to reflect the committed changes.