Skip to content

Repository files navigation

Libegpu

LicensePackage on Crates.ioPackage on PyPI

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

NVIDIA GeForce RTX 5060 Ti attached to the ADT-Link ADT-UT3G dock

✨ 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 easy-to-use 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

Python

importegpufordeviceinegpu.devices():
print(device)

Rust

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

Enumerating eGPU Controllers

Python

importegpuforcontrollerinegpu.controllers():
print(controller)

Rust

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

Enumerating eGPU Enclosures

Python

importegpuforenclosureinegpu.enclosures():
print(enclosure)

Rust

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

📚 Reference

docs.rs/egpu

Supported Hardware

Some of the hardware specifically detected by this library include:

eGPU Enclosures

VendorModelYear
RazerCore2016
RazerCore V22017
RazerCore X2018
RazerCore X Chroma2019
RazerCore X V22025

eGPU Controllers

VendorModelYear
ASMediaASM2464PD2023
IntelJHL65402016
IntelJHL74402018
IntelJHL94802024

Resources

macOS

👨‍💻 Development

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

Developing the Python Bindings

cd sdk/pythonmaturin developsource .venv/bin/activatepython3

Share on XShare on RedditShare on Hacker NewsShare on FacebookShare on LinkedIn

About

Libegpu is a library for enumerating eGPU devices & enclosures.

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages