amdgpu-syfs-rs
This library allows you to interact with the Linux Kernel SysFS interface for GPUs (mainly targeted at the AMDGPU driver).
Basic usage:
use GpuHandle;
# use PathBuf;
let sysfs_path = from;
let gpu_handle = new_from_path.unwrap;
let gpu_usage = gpu_handle.get_busy_percent.unwrap;
let total_vram = gpu_handle.get_total_vram.unwrap;
See the documentation for more info.