Skip to main content

sample_gpu_thermal

Function sample_gpu_thermal 

Source
pub fn sample_gpu_thermal() -> Option<GpuThermalSample>
Expand description

Read one GPU thermal/power sample. None when the nvml feature is off or NVML/the driver is unavailable (non-NVIDIA host, no driver). Never panics. Suitable for a UI telemetry poll.