[all-commits] [llvm/llvm-project] 73bb8d: [OpenMP] Fix child processes to use affinity_none ...

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Wed May 8 07:24:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73bb8d9d92f689863c94d48517e89d35dae0ebcf
      https://github.com/llvm/llvm-project/commit/73bb8d9d92f689863c94d48517e89d35dae0ebcf
  Author: Jonathan Peyton <jonathan.l.peyton at intel.com>
  Date:   2024-05-08 (Wed, 08 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



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