Skip to content

Commit

Permalink
utils: clarify that --restrict may cause logical index to change
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jul 27, 2023
1 parent 96d4afc commit 090d23a
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/hwloc/hwloc-bind.1in
Expand Up @@ -45,11 +45,17 @@ you should combine with hwloc-calc:
\fB\-\-restrict\fR <cpuset>
Restrict the topology to the given cpuset.
This removes some PUs and their now-child-less parents.

Beware that restricting the PUs in a topology may change the
logical indexes of many objects, including NUMA nodes.
.TP
\fB\-\-restrict\fR nodeset=<nodeset>
Restrict the topology to the given nodeset
(unless \fB\-\-restrict\-flags\fR specifies something different).
This removes some NUMA nodes and their now-child-less parents.

Beware that restricting the NUMA nodes in a topology may change the
logical indexes of many objects, including PUs.
.TP
\fB\-\-restrict\-flags\fR <flags>
Enforce flags when restricting the topology.
Expand Down
6 changes: 6 additions & 0 deletions utils/hwloc/hwloc-calc.1in
Expand Up @@ -66,11 +66,17 @@ This removes some PUs and their now-child-less parents.

This is useful when combining invocations to filter some objects
before selecting among them.

Beware that restricting the PUs in a topology may change the
logical indexes of many objects, including NUMA nodes.
.TP
\fB\-\-restrict\fR nodeset=<nodeset>
Restrict the topology to the given nodeset
(unless \fB\-\-restrict\-flags\fR specifies something different).
This removes some NUMA nodes and their now-child-less parents.

Beware that restricting the NUMA nodes in a topology may change the
logical indexes of many objects, including PUs.
.TP
\fB\-\-restrict\-flags\fR <flags>
Enforce flags when restricting the topology.
Expand Down
6 changes: 6 additions & 0 deletions utils/hwloc/hwloc-distrib.1in
Expand Up @@ -84,11 +84,17 @@ and singlify CPU sets by keeping the last bit (instead of the first bit).
\fB\-\-restrict\fR <cpuset>
Restrict the topology to the given cpuset.
This removes some PUs and their now-child-less parents.

Beware that restricting the PUs in a topology may change the
logical indexes of many objects, including NUMA nodes.
.TP
\fB\-\-restrict\fR nodeset=<nodeset>
Restrict the topology to the given nodeset
(unless \fB\-\-restrict\-flags\fR specifies something different).
This removes some NUMA nodes and their now-child-less parents.

Beware that restricting the NUMA nodes in a topology may change the
logical indexes of many objects, including PUs.
.TP
\fB\-\-restrict\-flags\fR <flags>
Enforce flags when restricting the topology.
Expand Down
9 changes: 9 additions & 0 deletions utils/hwloc/hwloc-info.1in
Expand Up @@ -129,17 +129,26 @@ Include objects disallowed by administrative limitations.
\fB\-\-restrict\fR <cpuset>
Restrict the topology to the given cpuset.
This removes some PUs and their now-child-less parents.

Beware that restricting the PUs in a topology may change the
logical indexes of many objects, including NUMA nodes.
.TP
\fB\-\-restrict\fR nodeset=<nodeset>
Restrict the topology to the given nodeset
(unless \fB\-\-restrict\-flags\fR specifies something different).
This removes some NUMA nodes and their now-child-less parents.

Beware that restricting the NUMA nodes in a topology may change the
logical indexes of many objects, including PUs.
.TP
\fB\-\-restrict\fR binding
Restrict the topology to the current process binding.
This option requires the use of the actual current machine topology
(or any other topology with \fB\-\-thissystem\fR or with
HWLOC_THISSYSTEM set to 1 in the environment).

Beware that restricting the topology may change the
logical indexes of many objects, including PUs and NUMA nodes.
.TP
\fB\-\-restrict\-flags\fR <flags>
Enforce flags when restricting the topology.
Expand Down
9 changes: 9 additions & 0 deletions utils/lstopo/lstopo-no-graphics.1in
Expand Up @@ -262,17 +262,26 @@ and bold font may be used to display PU boxes of different kinds.
\fB\-\-restrict\fR <cpuset>
Restrict the topology to the given cpuset.
This removes some PUs and their now-child-less parents.

Beware that restricting the PUs in a topology may change the
logical indexes of many objects, including NUMA nodes.
.TP
\fB\-\-restrict\fR nodeset=<nodeset>
Restrict the topology to the given nodeset.
(unless \fB\-\-restrict\-flags\fR specifies something different).
This removes some NUMA nodes and their now-child-less parents.

Beware that restricting the NUMA nodes in a topology may change the
logical indexes of many objects, including PUs.
.TP
\fB\-\-restrict\fR binding
Restrict the topology to the current process binding.
This option requires the use of the actual current machine topology
(or any other topology with \fB\-\-thissystem\fR or with
HWLOC_THISSYSTEM set to 1 in the environment).

Beware that restricting the topology may change the
logical indexes of many objects, including PUs and NUMA nodes.
.TP
\fB\-\-restrict\-flags\fR <flags>
Enforce flags when restricting the topology.
Expand Down

0 comments on commit 090d23a

Please sign in to comment.