HWLOC-BIND(1) hwloc HWLOC-BIND(1) (NAME) hwloc-bind - (SYNOPSIS) hwloc-bind [ ] [] <> [<> [...] ] [--] <> ... hwloc(7) hwloc <> . (TOPOLOGY OPTIONS) . --no-smt, --no-smt= (PU) . N- ( ) . PU . . --no-smt pu:2-5 . hwloc-calc : hwloc-bind $(hwloc-calc --restrict $(hwloc-calc --no-smt all) pu:2-5) -- echo hello --restrict (cpuset) . PU . PU NUMA . --restrict nodeset= (nodeset) ( --restrict-flags ). NUMA . NUMA PU . --restrict-flags . hwloc_topology_restrict() . bynodeset,memless. 0 ( none) . --disallowed . --best-memattr () NUMA ( ) . (initiator) . : Capacity Locality Bandwidth Latency. : $ lstopo --memattrs bandwidth,strict,default. default ( --default-nodes). . strict CPU . HBM HBM . HBM strict . --default-nodes NUMA . DRAM ( ) ( HBM NVM CXL ). ()hwloc_topology_get_default_nodeset . --hbm NUMA ( "HBM" "MCDRAM" Intel Xeon Phi) . NUMA --hbm numa:1 HBM. numa[hbm]:1 numa[mcdram]:1 . --no-hbm NUMA ( "HBM" "MCDRAM" Intel Xeon Phi) . (OPTIONS) . --cpubind CPU (). --membind . --mempolicy bind . --mempolicy . --membind . --membind --mempolicy bind . default firsttouch bind interleave weighted ( ) nexttouch. hwloc.h . hwloc . bind hwloc MPOL_PREFERRED_MANY ( MPOL_PREFERRED) strict hwloc MPOL_BIND . --get . hwloc-calc ( ). . . --membind CPU . . --nodeset --get (cpuset) NUMA . NUMA CPU . . nodeset= . -e --get-last-cpu-location . hwloc-calc ( ). . . . --membind . . --single (migration) . --strict (strict) . --pid . --tid (thread) . CPU -e . -p --physical / . --get . -l --logical / (). --get . --cpuset-output-format --cof (CPUset) --get -e . hwloc . list 2,4-5,8 . taskset taskset ( --taskset). hwloc list taskset . hwloc-calc --cpuset-input-format . -f --force . -q --quiet . . --force . -v --verbose . --version . -h --help . (DESCRIPTION) hwloc-bind ( ) ( ) (exec) . hwloc(7) . hwloc-bind (exec) . nodeset= . --nodeset . . . "--" . --force hwloc-bind . : hwloc(7) . hwloc(7) hwloc-bind . (EXAMPLES) hwloc-bind . hwloc-bind hwloc(7) . echo (Package): $ hwloc-bind package:1.pu:0 -- echo hello hwloc-bind : $ hwloc-bind package:1.pu:0 echo hello "echo" : $ hwloc-bind package:1.core:0 package:0.core:1 -- echo hello PU : $ hwloc-bind package:0.core:all.pu:0 -- echo hello $ hwloc-bind --no-smt package:0 -- echo hello --get . hwloc- bind : $ hwloc-bind node:1.package:2 -- hwloc-bind --get 0x00004444,0x44000000 (Examples with memory binding) : $ hwloc-bind --membind node:2 -- echo hello ( ): $ hwloc-bind --cpubind node:1 --membind node:0 -- echo hello () PU : $ hwloc-bind --best-memattr capacity --cpubind pu:23 --membind pu:23 -- echo hello : $ hwloc-bind --default-nodeset --membind package:1 -- echo hello NUMA "HBM": $ hwloc-bind --membind numa[hbm]:0 -- echo hello $ hwloc-bind --hbm --membind numa:0 -- echo hello (MCDRAM) Intel Xeon Phi: $ hwloc-bind --membind numa[mcdram]:0 -- echo hello $ hwloc-bind --hbm --membind numa:0 -- echo hello "echo" ( "echo" ) hwloc-bind . : $ hwloc-bind --membind node:1 --mempolicy interleave -- hwloc-bind --get --membind 0x000000f0 (interleave) (Examples with advanced resource specification) : $ hwloc-bind node:1-2.package:0:3 -- echo hello : $ hwloc-bind node:1-2.package:0-2 -- echo hello hwloc-bind -v . : $ hwloc-bind --physical package:1.core:2 -- echo hello : $ hwloc-bind package:even.core:odd -- echo hello : $ hwloc-bind package:0 ~package:0.core:1 ~package:0.core:4 -- echo hello : $ hwloc-bind all ~package:0 -- echo hello / (Examples with I/O devices) eth0: $ hwloc-bind os=eth0 -- echo hello PCI 0000:01:02.0 : $ hwloc-bind pci=0000:01:02.0 -- echo hello hwloc-calc (Examples with hwloc-calc help) hwloc-bind hwloc-calc . CoreType=IntelAtom : $ hwloc-bind $(hwloc-calc --restrict $(hwloc-calc --cpukind CoreType=IntelAtom all) core:0-1) -- echo hello hwloc-calc CPU package/core/PU H- hwloc-calc(1) . PU --get hwloc-calc CPU : $ hwloc-bind package:1.core:2 -- hwloc-bind --get | hwloc-calc -q -H package.core.pu Package:1.Core:2.PU:0 Package:1.Core:2.PU:1 hwloc-calc : $ hwloc-calc --physical -I pu `hwloc-bind --get` 26,30,34,38,42,46 $ hwloc-calc --logical -I pu `hwloc-bind --get` --sep " " 24 25 26 27 28 29 ( hwloc-calc ) . : $ hwloc-bind 0x00004444,0x44000000 -- echo hello $ hwloc-bind `hwloc-calc node:1.package:2` -- echo hello (HINT) lstopo : $ hwloc-bind core:2 -- lstopo --pid 0 . lstopo hwloc-bind . (RETURN VALUE) hwloc-bind (exec) . . hwloc-bind ( ): . (SEE ALSO) hwloc(7), lstopo(1), hwloc-calc(1), hwloc-distrib(1) 2.14.0 June 8, 2026 HWLOC-BIND(1)