macOS
brew install hwloclocal Homebrew formula metadata
sudo port install hwlocMacPorts ports tree · devel/hwloc/Portfile · source: api.github.com
brew
Portable abstraction of the hierarchical topology of modern architectures. Version 2.13.0 via Homebrew; verified from local package data.
install
brew install hwloclocal Homebrew formula metadata
sudo port install hwlocMacPorts ports tree · devel/hwloc/Portfile · source: api.github.com
sudo apk add hwlocAlpine Linux edge package indexes · hwloc · source: dl-cdn.alpinelinux.org
sudo apt install hwlocDebian stable package indexes · hwloc · source: deb.debian.org
sudo dnf install hwlocFedora Rawhide package metadata · hwloc · source: dl.fedoraproject.org
nix profile install nixpkgs#hwlocnixpkgs package indexes · pkgs/by-name/hw/hwloc/package.nix · source: api.github.com
sudo pacman -S hwlocArch Linux sync databases · hwloc · source: geo.mirror.pkgbuild.com
sudo zypper install hwlocopenSUSE Tumbleweed package metadata · hwloc · source: download.opensuse.org
overview
Portable abstraction of the hierarchical topology of modern architectures
history
hwloc, Hardware Locality, is a portable library and command-line tool suite for discovering and using machine topology: NUMA nodes, packages, cores, processing units, caches, I/O devices, and locality relationships. It is a system and HPC building block rather than a single end-user command.
The Open MPI project history says hwloc evolved from and merged the libtopology and Portable Linux Processor Affinity projects because they overlapped functionally and ideologically. It was released under the hwloc name as an Open MPI sub-project and is mostly developed by the TADaaM team at Inria in Bordeaux.
The NEWS file covers features since version 0.9 and carries 2009 copyright notices for CNRS, Inria, Universite Bordeaux, and Cisco Systems. The 1.0.0 tag dates to May 2010. Later major lines expanded the API and the command-line suite while preserving the central promise: make topology discovery and binding portable across operating systems and hardware generations.
Open MPI's project page lists downstream or related users including MPC, Newmadeleine, StarPU, Kokkos, oneTBB, memkind, H2M, Seastar, PaStiX, LIKWID, TensorFlow, GEOPM, and OpenPMIx. The package metadata shows broad distribution across Homebrew, Debian, Ubuntu, Fedora-family, Alpine, Arch, Nix, MacPorts, and openSUSE ecosystems.
Users run tools such as `lstopo`, `hwloc-info`, `hwloc-bind`, `hwloc-calc`, and related utilities to inspect topology, bind processes, calculate CPU or NUMA sets, export XML topologies, and debug locality issues. Developers use the C API to make runtime, scheduler, MPI, database, and performance tools topology-aware.
hwloc is package-nerd-significant because it is often pulled in indirectly by high-performance and systems software. A package manager may present it as a small system formula, but it encodes hard-won portability across Linux, BSDs, macOS, Windows, Solaris, AIX, cpusets, NUMA, caches, GPUs, and other topology surfaces.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
hwloc-annotate | cli | global executable | |
hwloc-bind | cli | global executable | |
hwloc-calc | cli | global executable | |
hwloc-compress-dir | cli | global executable | |
hwloc-diff | cli | global executable | |
hwloc-distrib | cli | global executable | |
hwloc-gather-topology | cli | global executable | |
hwloc-info | cli | global executable | |
hwloc-ls | cli | global executable | |
hwloc-patch | cli | global executable | |
hwloc-ps | cli | global executable | |
lstopo | cli | global executable | |
lstopo-no-graphics | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://www.open-mpi.org/projects/hwloc/
install metadata
| Package key | brew:hwloc |
|---|---|
| Version | 2.13.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/hwloc |
| Homepage | https://www.open-mpi.org/projects/hwloc/ |
| Repository | https://github.com/open-mpi/hwloc |
| Upstream docs | https://www.open-mpi.org/projects/hwloc |
| License | BSD-3-Clause |
| Source archive | https://download.open-mpi.org/release/hwloc/v2.13/hwloc-2.13.0.tar.bz2 |
| Build dependencies | pkgconf |
| Uses from macOS | libxml2, ncurses |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hwloc |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
hwloc 2.12.0-4
Hierarchical view of the machine - utilities
https://www.open-mpi.org/projects/hwloc/
sudo apt install hwlochwloc-nox 2.12.0-4
Hierarchical view of the machine - non-X version of utilities
https://www.open-mpi.org/projects/hwloc/
sudo apt install hwloc-noxlibhwloc-common 2.12.0-4
Hierarchical view of the machine - common files
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc-commonlibhwloc-dev 2.12.0-4
Hierarchical view of the machine - static libs and headers
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc-devlibhwloc-doc 2.12.0-4
Hierarchical view of the machine - documentation
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc-doclibhwloc-plugins 2.12.0-4
Hierarchical view of the machine - plugins
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc-pluginslibhwloc15 2.12.0-4
Hierarchical view of the machine - shared libs
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc15hwloc
nix profile install nixpkgs#hwlochwloc 2.10.0-1build1
Hierarchical view of the machine - utilities
https://www.open-mpi.org/projects/hwloc/
sudo apt install hwlochwloc-nox 2.10.0-1build1
Hierarchical view of the machine - non-X version of utilities
https://www.open-mpi.org/projects/hwloc/
sudo apt install hwloc-noxlibhwloc-common 2.10.0-1build1
Hierarchical view of the machine - common files
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc-commonlibhwloc-dev 2.10.0-1build1
Hierarchical view of the machine - static libs and headers
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc-devlibhwloc-doc 2.10.0-1build1
Hierarchical view of the machine - documentation
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc-doclibhwloc-plugins 2.10.0-1build1
Hierarchical view of the machine - plugins
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc-pluginslibhwloc15 2.10.0-1build1
Hierarchical view of the machine - shared libs
https://www.open-mpi.org/projects/hwloc/
sudo apt install libhwloc15hwloc 2.12.2-r0
Portable abstraction of hierarchical hardware architectures
sudo apk add hwlocsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.