adlx 0.0.0-alpha.1

Bindings for AMD's Device Library eXtra
Documentation
  • Coverage
  • 40.08%
    307 out of 766 items documented1 out of 167 items with examples
  • Size
  • Source code size: 295.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 38.29 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Traverse-Research/adlx-rs
    3 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Traverse-Research-CI-runner

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(())
}