[all-commits] [llvm/llvm-project] 50b68a: [OpenMP][host runtime] Add support for teams affinity

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Thu Oct 14 14:32:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50b68a3d030543daf97794d68682cc698964ca26
      https://github.com/llvm/llvm-project/commit/50b68a3d030543daf97794d68682cc698964ca26
  Author: Peyton, Jonathan L <jonathan.l.peyton at intel.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M openmp/runtime/src/kmp.h
    M openmp/runtime/src/kmp_global.cpp
    M openmp/runtime/src/kmp_runtime.cpp
    M openmp/runtime/src/kmp_settings.cpp
    M openmp/runtime/test/affinity/libomp_test_topology.h
    A openmp/runtime/test/affinity/teams-affinity.c

  Log Message:
  -----------
  [OpenMP][host runtime] Add support for teams affinity

This patch implements teams affinity on the host.
The default is spread. A user can specify either spread, close, or
primary using KMP_TEAMS_PROC_BIND environment variable. Unlike
OMP_PROC_BIND, KMP_TEAMS_PROC_BIND is only a single value and is not a
list of values. The values follow the same semantics under the OpenMP
specification for parallel regions except T is the number of teams in
a league instead of the number of threads in a parallel region.

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




More information about the All-commits mailing list