egpu

Crates.ioegpu
lib.rsegpu
version0.0.1
created_at2025-11-17 04:18:40.936176+00
updated_at2025-11-18 07:27:12.254148+00
descriptionLibegpu is a library for enumerating eGPU devices & enclosures
homepagehttps://libegpu.dev
repositoryhttps://github.com/artob/libegpu
max_upload_size
id1936231
size26,534
Arto Bendiken (artob)

documentation

README

Libegpu

License Package on Crates.io Package on PyPI

Libegpu is a library for enumerating external GPU (eGPU) devices & enclosures.

✨ Features

  • Enumerates PCIe-tunneled eGPU devices from AMD, NVIDIA, and Intel
  • Enumerates USB-attached eGPU enclosures from Razer (e.g. the Razer Core X V2)
  • Includes an lsegpu CLI tool for enumerating eGPU devices & enclosures
  • Includes Python bindings to the Rust library (a work in progress)
  • 100% free and unencumbered public domain software

🛠️ Prerequisites

  • Rust 1.85+ (2024 edition) if building from source code

⬇️ Installation

Installation from PyPI

pip install -U egpu

Installation from Source Code

cargo install egpu

👉 Examples

Enumerating eGPU Devices

for device in egpu::list_devices().unwrap() {
    println!("{:#?}", device);
}

Enumerating eGPU Enclosures

for enclosure in egpu::list_enclosures().unwrap() {
    println!("{:#?}", enclosure);
}

📚 Reference

docs.rs/egpu

👨‍💻 Development

git clone https://github.com/artob/libegpu.git

Share on X Share on Reddit Share on Hacker News Share on Facebook Share on LinkedIn

Commit count: 0

cargo fmt