+fn test_read_temperature_3080() {
+ nvapi::initialize().expect("Unable to initialize nvapi (Nvidia API)");
+ // if let Ok(gpus) = {
+ // for gpu in gpus {
+ // let thermal = gpu.thermal_settings(None).unwrap()[0];
+ // println!("{:?}", thermal.current_temperature.0)
+ // }
+ // }
+ let gpus = nvapi::PhysicalGpu::enumerate().unwrap();
+ let gpu = &gpus[0];
+ let sensor = gpu.thermal_settings(None).unwrap()[0];
+ println!("{:?}", sensor.current_temperature.0);
+ nvapi::unload().unwrap();
+}