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}")

Supported Platforms

  • Linux distributions, tested with latest Ubuntu LTS.

  • Latest Windows.

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.0.tar.gz (92.4 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.0-py3-none-win_amd64.whl (669.2 kB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.34+ x86-64

pyhwloc-3.0.0-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.0.tar.gz.

File metadata

  • Download URL: pyhwloc-3.0.0.tar.gz
  • Upload date:
  • Size: 92.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for pyhwloc-3.0.0.tar.gz
Algorithm Hash digest
SHA256 33c91c32d70a09fef743a29315d0b92154ce55f9e353594066e0f4c15ec5bd4b
MD5 77d7b81a1a0a56df66b95b3881530891
BLAKE2b-256 390ff70d097f05783e4ab209181ffcbca71f5da526bb0542d451dbc149e6e8ba

See more details on using hashes here.

File details

Details for the file pyhwloc-3.0.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: pyhwloc-3.0.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 669.2 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for pyhwloc-3.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 fe17067e97ec8ef5c8788bfd9f267c09b0bf87b613b21e335e08a2cd2c72ad22
MD5 c5da1cc6fe3f69b0447e6182bb02356a
BLAKE2b-256 593776076dda52aaad6c141735a81f4a204bf669ff47ea9ea9bd019199b8fd31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhwloc-3.0.0-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 43d0d2cb707865f67d5a723188d818e88df0b8004e87f48b7669199837f14fc2
MD5 9309b70d839368b068c4cb69b6e935cb
BLAKE2b-256 f6600f34b47d4ca1d7bf02fcc0fd6882097d6215407a90bed61c989ce529664e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhwloc-3.0.0-py3-none-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 5a62969aa2c068ee633296ec3bf0b38714a0bf17e5a74ec78311feb132dde3b5
MD5 4fab93a148529d4d51c13df75dc96c24
BLAKE2b-256 4360edb6e374656ef9760af1a150a57483750fd29a4cbac729cff34d58cad265

See more details on using hashes here.

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