File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,11 @@ the second core of the first package:
216
216
217
217
$ hwloc-bind package:1.core:0 package:0.core:1 -- echo hello
218
218
219
+ To bind on the first PU of all cores of the first package:
220
+
221
+ $ hwloc-bind package:0.core:all.pu:0 -- echo hello
222
+ $ hwloc-bind --no-smt package:0 -- echo hello
223
+
219
224
To bind memory on the first high-bandwidth memory node:
220
225
221
226
$ hwloc-bind --membind hbm:0 -- echo hello
Original file line number Diff line number Diff line change @@ -274,14 +274,15 @@ To synthetize a set of cores into largest objects on a 2-node 2-package 2-core m
274
274
To get the set of first threads of all cores:
275
275
276
276
$ hwloc-calc core:all.pu:0
277
+ $ hwloc-calc --no-smt all
277
278
278
279
This can also be very useful in order to make GNU OpenMP use exactly one thread
279
280
per core, and in logical core order:
280
281
281
282
$ export OMP_NUM_THREADS=`hwloc-calc --number-of core all`
282
283
$ echo $OMP_NUM_THREADS
283
284
4
284
- $ export GOMP_CPU_AFFINITY=`hwloc-calc --physical-output --intersect PU core: all.pu:0 `
285
+ $ export GOMP_CPU_AFFINITY=`hwloc-calc --physical-output --intersect PU --no-smt all`
285
286
$ echo $GOMP_CPU_AFFINITY
286
287
0,2,1,3
287
288
You can’t perform that action at this time.
0 commit comments