[Openmp-commits] [PATCH] D95156: [OpenMP] Update HWLOC topology detection for 2.0.x
Jonathan Peyton via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 21 11:22:10 PST 2021
jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar.
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.
HWLOC 2.0 has numa nodes as separate children and are not in the main
parent/child topology tree anymore. This change takes this into
account. The main topology detection loop in the create_hwloc_map()
routine starts at a hardware thread within the initial affinity mask and
goes up the topology tree setting the socket/core/thread labels correctly.
This change also introduces some of the more generic topology
manipulation changes including a generic ratio & count array
(finding all ratios of topology layers like threads/core cores/socket
and finding all counts of each topology layer), generic radix1 reduction
step, generic uniformity check, and generic printing of topology (en_US.txt)
The plan is to have all the topology methods to use the generic
topology manipulation methods in a future patch.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95156
Files:
openmp/runtime/src/i18n/en_US.txt
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_affinity.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95156.318261.patch
Type: text/x-patch
Size: 37222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210121/67cc58f6/attachment-0001.bin>
More information about the Openmp-commits
mailing list