in src/main.rs [308:315]
fn poll_throttling(nvml: &Nvml, gpu_count: usize) -> anyhow::Result<Vec<ThrottleReasons>> {
let mut throttling = vec![];
for i in 0..gpu_count {
let gpu = nvml.device_by_index(i as u32)?;
throttling.push(gpu.current_throttle_reasons()?);
}
Ok(throttling)
}