GalleryΒΆ

This directory contains examples for using the pyhwloc package.

Example of using membind

Example of using membind

Simple script for listing GPU devices

Simple script for listing GPU devices

High-level API Example

High-level API Example

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

  • Building from Source
  • Getting Started Guide
  • Gallery
    • Example of using membind
    • Simple script for listing GPU devices
    • High-level API Example
    • 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: Getting Started Guide
    • Next: Example of using membind
©2025, Jiaming Yuan. | Powered by Sphinx 8.2.3 & Alabaster 1.0.0 | Page source