Skip to content

Commit

Permalink
hwloc-calc.1: use "all" instead of "machine:0"
Browse files Browse the repository at this point in the history
"machine:0" is still supported but mostly useless
since the custom assembly backend was removed in 2.0.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Aug 7, 2019
1 parent dc3479c commit 31ca4e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/hwloc/hwloc-calc.1in
Expand Up @@ -217,7 +217,7 @@ package:
To bind GNU OpenMP threads logically over the whole machine, we need to use
physical number output instead:

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

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

$ export OMP_NUM_THREADS=`hwloc-calc --number-of core machine:0`
$ export OMP_NUM_THREADS=`hwloc-calc --number-of core all`
$ echo $OMP_NUM_THREADS
4
$ export GOMP_CPU_AFFINITY=`hwloc-calc --physical-output --intersect PU core:all.pu:0`
Expand Down

0 comments on commit 31ca4e8

Please sign in to comment.