Skip to content

Commit 459ae77

Browse files
bgoglinndenoyelle
authored andcommitted
lstopo: add --no-smt which just ignore PUs as existing filters
Signed-off-by: Brice Goglin <[email protected]>
1 parent d0672c5 commit 459ae77

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Version 2.1.0
9393
See dynamic_SVG_example.html for an example.
9494
+ Add --nodeset options to hwloc-calc for converting between cpusets and
9595
nodesets.
96-
+ Add --no-smt to hwloc-bind and hwloc-calc to ignore multiple
96+
+ Add --no-smt to lstopo, hwloc-bind and hwloc-calc to ignore multiple
9797
PU in SMT cores.
9898
+ hwloc-annotate may annotate multiple locations at once.
9999
+ Add a HTML/JS version of hwloc-ps. See contrib/hwloc-ps.www/README.

utils/lstopo/lstopo-no-graphics.1in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ Note also that the top-level object type cannot be ignored (usually Machine or S
134134
\fB\-\-ignore\fR <type>
135135
This is the old way to specify \fB-\-filter <type>:none\fR.
136136
.TP
137+
\fB\-\-no\-smt\fR
138+
Ignore PUs.
139+
This is identical to \fB-\-filter PU:none\fR.
140+
.TP
137141
\fB\-\-no\-caches\fR
138142
Do not show caches.
139143
This is identical to \fB-\-filter cache:none\fR.

utils/lstopo/lstopo.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ void usage(const char *name, FILE *where)
373373
fprintf (where, " --filter <type>:<knd> Filter objects of the given type, or all.\n");
374374
fprintf (where, " <knd> may be `all' (keep all), `none' (remove all), `structure' or `important'\n");
375375
fprintf (where, " --ignore <type> Ignore objects of the given type\n");
376+
fprintf (where, " --no-smt Ignore PUs\n");
376377
fprintf (where, " --no-caches Do not show caches\n");
377378
fprintf (where, " --no-useless-caches Do not show caches which do not have a hierarchical\n"
378379
" impact\n");
@@ -778,6 +779,9 @@ main (int argc, char *argv[])
778779
hwloc_topology_set_type_filter(topology, type, HWLOC_TYPE_FILTER_KEEP_NONE);
779780
opt = 1;
780781
}
782+
else if (!strcmp (argv[0], "--no-smt")) {
783+
loutput.ignore_pus = 1;
784+
}
781785
else if (!strcmp (argv[0], "--no-caches")) {
782786
hwloc_topology_set_cache_types_filter(topology, HWLOC_TYPE_FILTER_KEEP_NONE);
783787
hwloc_topology_set_type_filter(topology, HWLOC_OBJ_MEMCACHE, HWLOC_TYPE_FILTER_KEEP_NONE);

0 commit comments

Comments
 (0)