Skip to main content

Python interface of the hwloc library.

Project description

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhwloc-3.0.1.tar.gz (95.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyhwloc-3.0.1-py3-none-win_amd64.whl (674.3 kB view details)

Uploaded Python 3Windows x86-64

pyhwloc-3.0.1-py3-none-manylinux_2_34_x86_64.whl (2.5 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

pyhwloc-3.0.1-py3-none-manylinux_2_34_aarch64.whl (2.4 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ ARM64

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

Hashes for pyhwloc-3.0.1.tar.gz
Algorithm Hash digest
SHA256 7a068f72d6ed15708bd507f062017c6f3da7d778d748958e3702a0759070cca8
MD5 d86d43f77e85c7e137a109d0ed92fe1c
BLAKE2b-256 9667257e9f4744a21c9fe7136cc639aafce618bd675fa69377c7ba0e8c60e1b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhwloc-3.0.1.tar.gz:

Publisher: pypi.yml on open-mpi/pyhwloc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pyhwloc-3.0.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 07ef6ffcde04c77c35c4184f6ef050864376b44f0a47af31e12817dc0b849673
MD5 151343ae98a56aee3465522179645e32
BLAKE2b-256 10f5ec8ec9e59c163912d7741d277eee7f4f31b82aa59574fe1611ce45def010

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyhwloc-3.0.1-py3-none-win_amd64.whl:

Publisher: pypi.yml on open-mpi/pyhwloc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyhwloc-3.0.1-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pyhwloc-3.0.1-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 527d297708238072453de68e73084545bf98ac0c2f07ce25176ceaf761fa19e6
MD5 bf46cbd15fcb31709f07cfeece820c32
BLAKE2b-256 236bb6967a4d58f99e9ff2464753ab218df407e841534615624847130c40445e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyhwloc-3.0.1-py3-none-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for pyhwloc-3.0.1-py3-none-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 4d27294f2b9a6930b46802b047a429786664ee13963557890afa6c9bce6deaff
MD5 c95364e7e802a9846301d9c64ab627d4
BLAKE2b-256 6bf60ac13a2c439ee79f63eb373bf3d6c81e549165523dc75a7168e180d79fff

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page