[all-commits] [llvm/llvm-project] 6a556e: [OpenMP][libomp] Add use-all syntax to KMP_HW_SUBSET

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Mon Dec 20 11:46:05 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a556ecaf4c3ab9082a8be67d5509d2dfc13e5d3
  Author: Jonathan Peyton <jonathan.l.peyton at intel.com>
  Date:   2021-12-20 (Mon, 20 Dec 2021)

  Changed paths:
    M openmp/docs/design/Runtimes.rst
    M openmp/runtime/src/kmp_affinity.cpp
    M openmp/runtime/src/kmp_affinity.h
    M openmp/runtime/src/kmp_settings.cpp

  Log Message:
  [OpenMP][libomp] Add use-all syntax to KMP_HW_SUBSET

This patch allows the user to request all resources of a particular
layer (or core-attribute). The syntax of KMP_HW_SUBSET is modified
so the number of units requested is optional or can be replaced with an
'*' character.

e.g., KMP_HW_SUBSET=c:intel_atom at 3 will use all the cores after offset 3
e.g., KMP_HW_SUBSET=*c:intel_core will use all the big cores
e.g., KMP_HW_SUBSET=*s,*c,1t will use all the sockets, all cores per
      each socket and 1 thread per core.

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

More information about the All-commits mailing list