Skip to content

Commit 2fe1a19

Browse files
committed
API: clarify that restrict() removes PUs or NUMAs
And then their child-less parents recursively. Signed-off-by: Brice Goglin <[email protected]>
1 parent 63762b9 commit 2fe1a19

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/hwloc.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2632,8 +2632,15 @@ enum hwloc_restrict_flags_e {
26322632
* are not included (or partially included) in the CPU set \p set.
26332633
* All objects CPU and node sets are restricted accordingly.
26342634
*
2635+
* By default, \p set is a CPU set. It means that the set of PUs in
2636+
* the topology is restricted. Once some PUs got removed, their parents
2637+
* may also get removed recursively if they became child-less.
2638+
*
26352639
* If ::HWLOC_RESTRICT_FLAG_BYNODESET is passed in \p flags,
26362640
* \p set is considered a nodeset instead of a CPU set.
2641+
* It means that the set of NUMA nodes in the topology is restricted
2642+
* (instead of PUs). Once some NUMA nodes got removed, their parents
2643+
* may also get removed recursively if they became child-less.
26372644
*
26382645
* \p flags is a OR'ed set of ::hwloc_restrict_flags_e.
26392646
*

0 commit comments

Comments
 (0)