[all-commits] [llvm/llvm-project] 286094: [OpenMP][libomp] Improve Windows Processor Group h...

Jonathan Peyton via All-commits all-commits at lists.llvm.org
Wed Nov 17 14:29:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 286094af9bc0cfc89d00d8d645e8eaca3d78cd91
      https://github.com/llvm/llvm-project/commit/286094af9bc0cfc89d00d8d645e8eaca3d78cd91
  Author: Peyton, Jonathan L <jonathan.l.peyton at intel.com>
  Date:   2021-11-17 (Wed, 17 Nov 2021)

  Changed paths:
    M openmp/runtime/src/i18n/en_US.txt
    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] Improve Windows Processor Group handling within topology

The current implementation of Windows Processor Groups has
a separate topology method to handle them. This patch deprecates
that specific method and uses the regular CPUID topology
method by default and inserts the Windows Processor Group objects
in the topology manually.

Notes:
* The preference for processor groups is lowered to a value less than
  socket so that the user will see sockets in the KMP_AFFINITY=verbose
  output instead of processor groups when sockets=processor groups.
* The topology's capacity is modified to handle additional topology layers
  without the need for reallocation.
* If a user asks for a granularity setting that is "above" the processor
  group layer, then the granularity is adjusted "down" to the processor
  group since this is the coarsest layer available for threads.

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




More information about the All-commits mailing list