This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fix norespect affinity bug for Windows
ClosedPublic

Authored by jlpeyton on Dec 3 2020, 10:21 AM.

Details

Summary

KMP_AFFINITY=norespect was triggering an error because the underlying
process affinity mask was not updated to include the entire machine.
The Windows documentation states that the thread affinities must be
subsets of the process affinity. This patch also moves the printing (for KMP_AFFINITY=verbose) of whether the initial mask was respected out of each topology detection function and to one location where the initial affinity mask is read.

Diff Detail

Event Timeline

jlpeyton created this revision.Dec 3 2020, 10:21 AM
jlpeyton requested review of this revision.Dec 3 2020, 10:21 AM
This revision is now accepted and ready to land.Dec 7 2020, 6:23 AM
This revision was landed with ongoing or failed builds.Dec 9 2020, 12:34 PM
This revision was automatically updated to reflect the committed changes.