[Openmp-commits] [PATCH] D112273: [OpenMP][libomp] Improve Windows Processor Group handling within topology

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Oct 21 14:33:33 PDT 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.

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.


- 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.

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112273.381395.patch
Type: text/x-patch
Size: 11736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211021/97701e33/attachment-0001.bin>

More information about the Openmp-commits mailing list