[all-commits] [llvm/llvm-project] 09615c: [OpenMP] Fix child processes to use affinity_none ...
Jonathan Peyton via All-commits
all-commits at lists.llvm.org
Fri May 10 13:57:13 PDT 2024
Branch: refs/heads/release/18.x
Home: https://github.com/llvm/llvm-project
Commit: 09615ce869b08f897ab9a444646f609a5604492a
https://github.com/llvm/llvm-project/commit/09615ce869b08f897ab9a444646f609a5604492a
Author: Jonathan Peyton <jonathan.l.peyton at intel.com>
Date: 2024-05-10 (Fri, 10 May 2024)
Changed paths:
M openmp/runtime/src/kmp_settings.cpp
M openmp/runtime/test/affinity/redetect.c
Log Message:
-----------
[OpenMP] Fix child processes to use affinity_none (#91391)
When a child process is forked with OpenMP already initialized, the
child process resets its affinity mask and sets proc-bind-var to false
so that the entire original affinity mask is used. This patch corrects
an issue with the affinity initialization code setting affinity to
compact instead of none for this special case of forked children.
The test trying to catch this only testing explicit setting of
KMP_AFFINITY=none. Add test run for no KMP_AFFINITY setting.
Fixes: #91098
(cherry picked from commit 73bb8d9d92f689863c94d48517e89d35dae0ebcf)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list