diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2024-05-08 09:23:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 09:23:50 -0500 |
commit | 73bb8d9d92f689863c94d48517e89d35dae0ebcf (patch) | |
tree | adefa0ca21cc271eff16246fc144ecfb470b454f /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | 27a062e9ca7c92e89ed4084c3c3affb9fa39aabb (diff) | |
download | llvm-73bb8d9d92f689863c94d48517e89d35dae0ebcf.zip llvm-73bb8d9d92f689863c94d48517e89d35dae0ebcf.tar.gz llvm-73bb8d9d92f689863c94d48517e89d35dae0ebcf.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions