TL;DR
use active_gpu;
let gpu = active_gpu;
println!;
println!;
println!;
println!;
// And with `gpu_info` feature enabled
let info = gpu.info;
println!;
println!;
println!;
println!;
Features
- Cross-platform, cross-vendor support
- Plenty of feature flags
- Low dependency count
Feature flags
| Feature | Description | Default |
|---|---|---|
default |
Enables all features | Yes |
amd |
Enables AMD GPU support | Yes |
nvidia |
Enables Nvidia GPU support | Yes |
intel |
Enables Intel GPU support | Yes |
gpu_info |
Enables the GpuInfo trait, which provides query functions for things like VRAM usage |
Yes |
TODO
(Windows support is speculative, as it uses the Windows API and I don't have a Windows machine to test on. It did work partially in a VM using the basic display driver!)
- Cross-platform vendor support
- Nvidia
- Windows
- Linux
- AMD
- Windows
- Linux
- Intel
- Windows
- Linux
- Generic/Other
- Apple/MacOS
- Nvidia
- Supported information
- Vendor
- Model
- Family
- Device ID
- Total VRAM
- Used VRAM
- Load percentage
- Temperature