Python interface of the hwloc library.
Project description
Official site of the hwloc library.
GitHub repository of the hwloc library.
Quick Start Example
from pyhwloc import from_this_system
# Create and load system topology
with from_this_system() as topo:
# Get basic system information
n_cores = topo.n_cores()
n_numa = topo.n_numa_nodes()
print(f"System has {n_cores} CPU cores")
print(f"System has {n_numa} NUMA nodes")
# Get the current CPU binding
cpuset = topo.get_cpubind()
print(f"Current CPU binding: {cpuset}")
Install
pip install pyhwloc
Supported platforms:
Linux distributions, tested with latest Ubuntu LTS.
Latest Windows.
The binaries on PyPI have optional support for CUDA 13 plugins.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyhwloc-3.0.1.tar.gz.
File metadata
- Download URL: pyhwloc-3.0.1.tar.gz
- Upload date:
- Size: 95.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a068f72d6ed15708bd507f062017c6f3da7d778d748958e3702a0759070cca8
|
|
| MD5 |
d86d43f77e85c7e137a109d0ed92fe1c
|
|
| BLAKE2b-256 |
9667257e9f4744a21c9fe7136cc639aafce618bd675fa69377c7ba0e8c60e1b0
|
Provenance
The following attestation bundles were made for pyhwloc-3.0.1.tar.gz:
Publisher:
pypi.yml on open-mpi/pyhwloc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyhwloc-3.0.1.tar.gz -
Subject digest:
7a068f72d6ed15708bd507f062017c6f3da7d778d748958e3702a0759070cca8 - Sigstore transparency entry: 1516347555
- Sigstore integration time:
-
Permalink:
open-mpi/pyhwloc@5ee05da30f8ba362e40cadea5619b9915670674c -
Branch / Tag:
refs/heads/release_3.0.1 - Owner: https://github.com/open-mpi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@5ee05da30f8ba362e40cadea5619b9915670674c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pyhwloc-3.0.1-py3-none-win_amd64.whl.
File metadata
- Download URL: pyhwloc-3.0.1-py3-none-win_amd64.whl
- Upload date:
- Size: 674.3 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07ef6ffcde04c77c35c4184f6ef050864376b44f0a47af31e12817dc0b849673
|
|
| MD5 |
151343ae98a56aee3465522179645e32
|
|
| BLAKE2b-256 |
10f5ec8ec9e59c163912d7741d277eee7f4f31b82aa59574fe1611ce45def010
|
Provenance
The following attestation bundles were made for pyhwloc-3.0.1-py3-none-win_amd64.whl:
Publisher:
pypi.yml on open-mpi/pyhwloc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyhwloc-3.0.1-py3-none-win_amd64.whl -
Subject digest:
07ef6ffcde04c77c35c4184f6ef050864376b44f0a47af31e12817dc0b849673 - Sigstore transparency entry: 1516347623
- Sigstore integration time:
-
Permalink:
open-mpi/pyhwloc@5ee05da30f8ba362e40cadea5619b9915670674c -
Branch / Tag:
refs/heads/release_3.0.1 - Owner: https://github.com/open-mpi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@5ee05da30f8ba362e40cadea5619b9915670674c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pyhwloc-3.0.1-py3-none-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: pyhwloc-3.0.1-py3-none-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
527d297708238072453de68e73084545bf98ac0c2f07ce25176ceaf761fa19e6
|
|
| MD5 |
bf46cbd15fcb31709f07cfeece820c32
|
|
| BLAKE2b-256 |
236bb6967a4d58f99e9ff2464753ab218df407e841534615624847130c40445e
|
Provenance
The following attestation bundles were made for pyhwloc-3.0.1-py3-none-manylinux_2_34_x86_64.whl:
Publisher:
pypi.yml on open-mpi/pyhwloc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyhwloc-3.0.1-py3-none-manylinux_2_34_x86_64.whl -
Subject digest:
527d297708238072453de68e73084545bf98ac0c2f07ce25176ceaf761fa19e6 - Sigstore transparency entry: 1516348136
- Sigstore integration time:
-
Permalink:
open-mpi/pyhwloc@5ee05da30f8ba362e40cadea5619b9915670674c -
Branch / Tag:
refs/heads/release_3.0.1 - Owner: https://github.com/open-mpi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@5ee05da30f8ba362e40cadea5619b9915670674c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pyhwloc-3.0.1-py3-none-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: pyhwloc-3.0.1-py3-none-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d27294f2b9a6930b46802b047a429786664ee13963557890afa6c9bce6deaff
|
|
| MD5 |
c95364e7e802a9846301d9c64ab627d4
|
|
| BLAKE2b-256 |
6bf60ac13a2c439ee79f63eb373bf3d6c81e549165523dc75a7168e180d79fff
|
Provenance
The following attestation bundles were made for pyhwloc-3.0.1-py3-none-manylinux_2_34_aarch64.whl:
Publisher:
pypi.yml on open-mpi/pyhwloc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyhwloc-3.0.1-py3-none-manylinux_2_34_aarch64.whl -
Subject digest:
4d27294f2b9a6930b46802b047a429786664ee13963557890afa6c9bce6deaff - Sigstore transparency entry: 1516347719
- Sigstore integration time:
-
Permalink:
open-mpi/pyhwloc@5ee05da30f8ba362e40cadea5619b9915670674c -
Branch / Tag:
refs/heads/release_3.0.1 - Owner: https://github.com/open-mpi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@5ee05da30f8ba362e40cadea5619b9915670674c -
Trigger Event:
workflow_dispatch
-
Statement type: