[Openmp-commits] [PATCH] D115826: [OpenMP][libomp] Add use-all syntax to KMP_HW_SUBSET

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Dec 15 13:02:49 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.

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.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115826

Files:
  openmp/docs/design/Runtimes.rst
  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: D115826.394645.patch
Type: text/x-patch
Size: 5655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211215/bcfbeef6/attachment-0001.bin>


More information about the Openmp-commits mailing list