[Openmp-commits] [PATCH] D114901: [OpenMP][libomp] Add core attributes to KMP_HW_SUBSET

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Dec 1 12:29:00 PST 2021


jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar, hbae, Nawrin.
jlpeyton added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
jlpeyton requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

Add filtering of hardware resources based on core attributes to the environment variable `KMP_HW_SUBSET`. There are two new attributes added:

1. Core Type (intel_atom, intel_core)
2. Core Efficiency (integer) where the higher the efficiency, the more performant the core

On hybrid architectures , e.g., Alder Lake, users can specify
 `KMP_HW_SUBSET=4c:intel_atom,4c:intel_core` to select the first four Atom
 and first four Big cores. The can also use the efficiency syntax. e.g.,
 `KMP_HW_SUBSET=2c:eff0,2c:eff1`


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114901

Files:
  openmp/docs/design/Runtimes.rst
  openmp/runtime/src/i18n/en_US.txt
  openmp/runtime/src/kmp.h
  openmp/runtime/src/kmp_affinity.cpp
  openmp/runtime/src/kmp_affinity.h
  openmp/runtime/src/kmp_settings.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114901.391108.patch
Type: text/x-patch
Size: 39942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211201/b0a8fd79/attachment-0001.bin>


More information about the Openmp-commits mailing list