Expand description
§ADLX
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(())
}Re-exports§
pub use gpu::*;pub use gpu_list::*;pub use gpu_metrics::*;pub use helper::*;pub use interface::*;pub use list::*;pub use performance_monitoring_services::*;pub use result::*;pub use system::*;
Modules§
- ffi
- gpu
- gpu_
list - gpu_
metrics - helper
- interface
ADLXinterfaces look identical to COM objects.- list
- performance_
monitoring_ services - result
- system
