Skip to content

Commit a942a56

Browse files
committed
API+doxy: clarify that NUMA subtypes may be missing or wrong
Document HWLOC_MEMTIERS= envvar for overwriting them. Signed-off-by: Brice Goglin <[email protected]>
1 parent e4333bf commit a942a56

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

doc/hwloc.doxy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,10 @@ subtype <tt>DRAM</tt> (for usual main memory),
19471947
<tt>MCDRAM</tt> (on KNL),
19481948
<tt>GPUMemory</tt> (on POWER architecture with NVIDIA GPU memory shared over NVLink),
19491949
<tt>CXL-DRAM</tt> or <tt>CXL-NVM</tt> for CXL DRAM or non-volatile memory.
1950+
Note that some of these subtypes are guessed by the library,
1951+
they might be missing or slightly wrong in some corner cases.
1952+
See HWLOC_MEMTIERS and HWLOC_MEMTIERS_GUESS
1953+
in \ref envvar for tuning these.
19501954
</li>
19511955
<li>Groups:
19521956
subtype <tt>Cluster</tt>, <tt>Module</tt>, <tt>Tile</tt>, <tt>Compute Unit</tt>,

include/hwloc.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ typedef enum {
263263
* This is the smallest object representing Memory resources,
264264
* it cannot have any child except Misc objects.
265265
* However it may have Memory-side cache parents.
266+
*
267+
* NUMA nodes may correspond to different kinds of memory
268+
* (DRAM, HBM, CXL-DRAM, etc.). When hwloc is able to guess
269+
* that kind, it is specified in the subtype field of the object.
270+
* See also \ref attributes_normal in the main documentation.
266271
*
267272
* There is always at least one such object in the topology
268273
* even if the machine is not NUMA.

0 commit comments

Comments
 (0)