aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/Platform.cpp
diff options
context:
space:
mode:
authorPeyton, Jonathan L <jonathan.l.peyton@intel.com>2021-05-10 10:03:23 -0500
committerPeyton, Jonathan L <jonathan.l.peyton@intel.com>2021-05-11 08:54:22 -0500
commitc765d140fe45906fb503d843acccf5838e775245 (patch)
tree783bf7b401cc7b4c8b9bbac12a8cc20aafb4c490 /llvm/lib/TextAPI/Platform.cpp
parentfaebc6bf108eccdfd75917636c64137f73a7bda7 (diff)
downloadllvm-c765d140fe45906fb503d843acccf5838e775245.zip
llvm-c765d140fe45906fb503d843acccf5838e775245.tar.gz
llvm-c765d140fe45906fb503d843acccf5838e775245.tar.bz2
[OpenMP] Fix hidden helper + affinity
When KMP_AFFINITY is set, each worker thread's gtid value is used as an index into the place list to determine the thread's placement. With hidden helpers enabled, this gtid value is shifted down leading to unexpected shifted thread placement. This patch restores the previous behavior by adjusting the mask index to take the number of hidden helper threads into account. Hidden helper threads are given the full initial mask and do not participate in any of the other affinity mechanisms (place partitioning, balanced affinity). Their affinity is only printed for debug builds. Differential Revision: https://reviews.llvm.org/D101882
Diffstat (limited to 'llvm/lib/TextAPI/Platform.cpp')
0 files changed, 0 insertions, 0 deletions