macOS
brew install hwloclocal Homebrew formula metadata
sudo port install hwlocMacPorts ports tree · devel/hwloc/Portfile · 来源: api.github.com
安装
brew install hwloclocal Homebrew formula metadata
sudo port install hwlocMacPorts ports tree · devel/hwloc/Portfile · 来源: api.github.com
sudo apk add hwlocAlpine Linux edge package indexes · hwloc · 来源: dl-cdn.alpinelinux.org
sudo dnf install hwlocFedora Rawhide package metadata · hwloc · 来源: dl.fedoraproject.org
nix profile install nixpkgs#hwlocnixpkgs package indexes · pkgs/by-name/hw/hwloc/package.nix · 来源: api.github.com
sudo pacman -S hwlocArch Linux sync databases · hwloc · 来源: geo.mirror.pkgbuild.com
sudo zypper install hwlocopenSUSE Tumbleweed package metadata · hwloc · 来源: download.opensuse.org
概览
Portable abstraction of the hierarchical topology of modern architectures
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
hwloc-annotate | cli | 全局可执行文件 | |
hwloc-bind | cli | 全局可执行文件 | |
hwloc-calc | cli | 全局可执行文件 | |
hwloc-compress-dir | cli | 全局可执行文件 | |
hwloc-diff | cli | 全局可执行文件 | |
hwloc-distrib | cli | 全局可执行文件 | |
hwloc-gather-topology | cli | 全局可执行文件 | |
hwloc-info | cli | 全局可执行文件 | |
hwloc-ls | cli | 全局可执行文件 | |
hwloc-patch | cli | 全局可执行文件 | |
hwloc-ps | cli | 全局可执行文件 | |
lstopo | cli | 全局可执行文件 | |
lstopo-no-graphics | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.open-mpi.org/projects/hwloc/
安装元数据
| 软件包键 | brew:hwloc |
|---|---|
| 版本 | 2.13.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/hwloc |
| 主页 | https://www.open-mpi.org/projects/hwloc/ |
| 仓库 | https://github.com/open-mpi/hwloc |
| 上游文档 | https://www.open-mpi.org/projects/hwloc |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://download.open-mpi.org/release/hwloc/v2.13/hwloc-2.13.0.tar.bz2 |
| 构建依赖 | pkgconf |
| macOS 提供的库 | libxml2, ncurses |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 hwloc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.