amdgpu-sysfs 0.4.3

Library for interacting with the Linux Kernel SysFS interface for GPUs (mainly targeted at the AMDGPU driver).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# amdgpu-syfs-rs
[![Crates.io](https://img.shields.io/crates/v/amdgpu-sysfs)](https://crates.io/crates/amdgpu-sysfs)
[![Docs.rs](https://docs.rs/amdgpu-sysfs/badge.svg)](https://docs.rs/amdgpu-sysfs/)

This library allows you to interact with the Linux Kernel SysFS interface for GPUs (mainly targeted at the AMDGPU driver). 

Basic usage:

```rust
let sysfs_path = PathBuf::from_str("/sys/class/drm/card0/device").unwrap();

let gpu_controller = GpuController::new_from_path(sysfs_path).await.unwrap();
    
let gpu_usage = gpu_controller.get_busy_percent().await.unwrap();
    
let total_vram = gpu_controller.get_total_vram().await.unwrap(); 
```