[all-commits] [llvm/llvm-project] 0ddde4: [OpenMP] Lazily assign root affinity

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Tue Jun 15 14:21:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ddde4d86518de1154b6e850dc49010c829b717c
      https://github.com/llvm/llvm-project/commit/0ddde4d86518de1154b6e850dc49010c829b717c
  Author: Peyton, Jonathan L <jonathan.l.peyton at intel.com>
  Date:   2021-06-15 (Tue, 15 Jun 2021)

  Changed paths:
    M openmp/runtime/src/kmp.h
    M openmp/runtime/src/kmp_csupport.cpp
    M openmp/runtime/src/kmp_ftn_entry.h
    M openmp/runtime/src/kmp_runtime.cpp
    A openmp/runtime/test/affinity/root-threads-affinity.c

  Log Message:
  -----------
  [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




More information about the All-commits mailing list