Skip to content

Commit 1c4d21f

Browse files
bgoglinndenoyelle
authored andcommitted
hwloc-calc.1: use "all" instead of "machine:0"
"machine:0" is still supported but mostly useless since the custom assembly backend was removed in 2.0. Signed-off-by: Brice Goglin <[email protected]>
1 parent c4457f0 commit 1c4d21f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/hwloc/hwloc-calc.1in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ package:
217217
To bind GNU OpenMP threads logically over the whole machine, we need to use
218218
physical number output instead:
219219

220-
$ export GOMP_CPU_AFFINITY=`hwloc-calc --physical-output --intersect PU machine:0`
220+
$ export GOMP_CPU_AFFINITY=`hwloc-calc --physical-output --intersect PU all`
221221
$ echo $GOMP_CPU_AFFINITY
222222
0,4,1,5,2,6,3,7
223223

@@ -278,7 +278,7 @@ To get the set of first threads of all cores:
278278
This can also be very useful in order to make GNU OpenMP use exactly one thread
279279
per core, and in logical core order:
280280

281-
$ export OMP_NUM_THREADS=`hwloc-calc --number-of core machine:0`
281+
$ export OMP_NUM_THREADS=`hwloc-calc --number-of core all`
282282
$ echo $OMP_NUM_THREADS
283283
4
284284
$ export GOMP_CPU_AFFINITY=`hwloc-calc --physical-output --intersect PU core:all.pu:0`

0 commit comments

Comments
 (0)