| Crates.io | adlx |
| lib.rs | adlx |
| version | 0.0.0-alpha.1 |
| created_at | 2024-05-01 08:57:30.680662+00 |
| updated_at | 2024-05-01 08:57:30.680662+00 |
| description | Bindings for AMD's Device Library eXtra |
| homepage | https://traverseresearch.nl |
| repository | https://github.com/Traverse-Research/adlx-rs |
| max_upload_size | |
| id | 1225968 |
| size | 296,159 |
Bindings for AMD's Device Library eXtra (ADLX).
Add this to your Cargo.toml:
[dependencies]
adlx = "0.0.0-alpha.1"
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(())
}