1 unstable release

new 0.0.0-alpha.1 May 1, 2024

#236 in Graphics APIs

MIT license

295KB
7.5K SLoC

ADLX

Actions Status Latest version Documentation MSRV Lines of code MIT Contributor Covenant

Banner

Bindings for AMD's Device Library eXtra (ADLX).

Usage

Add this to your Cargo.toml:

[dependencies]
adlx = "0.0.0-alpha.1"

Code example

use adlx::{gpu::Gpu1, helper::AdlxHelper, interface::Interface};
use anyhow::Result;

fn main() -> Result<()> {
    let helper = AdlxHelper::new()?;
    let system = helper.system();
    let gpu_list = system.gpus()?;

    for gpu in 0..gpu_list.size() {
        let gpu = gpu_list.at(gpu)?;
        let gpu1 = gpu.cast::<Gpu1>()?;
        dbg!(gpu1.name()?);
        dbg!(gpu1.product_name()?);
    }

    Ok(())
}

Dependencies

~0.2–5MB