amdgpu-sysfs 0.21.0

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
18
mod sysfs;
mod utils;

use amdgpu_sysfs::gpu_handle::{GpuHandle, PowerLevels};
use utils::p_level;

test_with_handle! {
    "rx6950xt",
    invalid_dpm_sclk => {
        GpuHandle::get_core_clock_levels,
        Ok(PowerLevels {
            levels: vec![
                p_level(0, 0), p_level(1, 0)
            ],
            active: None,
        })
    },
}