HomePhabricator

[OpenMP] Lazily assign root affinity

Authored by jlpeyton on Jun 2 2021, 8:39 AM.

Description

[OpenMP] Lazily assign root affinity

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 init thread was resetting the
its own affinity using the target thread's affinity mask.

Differential Revision: https://reviews.llvm.org/D103625

Details

Committed
jlpeytonJun 15 2021, 2:21 PM
Differential Revision
D103625: [OpenMP] Lazily assign root affinity
Parents
rGe8f998c0c5ed: AArch64 Linux and elf-core PAC stack unwinder support
Branches
Unknown
Tags
Unknown