GalleryΒΆ

This directory contains examples for using the pyhwloc package.

Example of using membind

Example of using membind

High-level API Example

High-level API Example

Simple script for listing GPU devices

Simple script for listing GPU devices

Count the number of hops between PCI storage and GPUs

Count the number of hops between PCI storage and GPUs

Low-level API Example

Low-level API Example

Download all examples in Python source code: examples_python.zip

Download all examples in Jupyter notebooks: examples_jupyter.zip

Gallery generated by Sphinx-Gallery

pyhwloc

Navigation

  • Getting Started Guide
  • Building from Source
  • Gallery
    • Example of using membind
    • High-level API Example
    • Simple script for listing GPU devices
    • Count the number of hops between PCI storage and GPUs
    • Low-level API Example
  • PyHwloc API
  • PyHwloc Low Level API
  • Hwloc C API
  • Developer Notes

Related Topics

  • Documentation overview
    • Previous: Building from Source
    • Next: Example of using membind
©2025, Jiaming Yuan. | Powered by Sphinx 8.2.3 & Alabaster 1.0.0 | Page source