[Openmp-commits] [PATCH] D103625: [OpenMP] Lazily assign root affinity
Jonathan Peyton via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jun 3 09:08:56 PDT 2021
jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar, hbae, Nawrin.
jlpeyton added a project: OpenMP.
Herald added subscribers: jfb, guansong, yaxunl.
jlpeyton requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103625
Files:
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_csupport.cpp
openmp/runtime/src/kmp_ftn_entry.h
openmp/runtime/src/kmp_runtime.cpp
openmp/runtime/test/affinity/root-threads-affinity.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103625.349575.patch
Type: text/x-patch
Size: 15197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210603/21bd6482/attachment-0001.bin>
More information about the Openmp-commits
mailing list