Skip to main content

read_gpu_temperature_celsius

Function read_gpu_temperature_celsius 

Source
fn read_gpu_temperature_celsius() -> Option<f32>
Expand description

Best-effort GPU temperature in degrees Celsius via nvidia-smi.

Returns None if nvidia-smi is absent or its output cannot be parsed (e.g. non-NVIDIA host, no driver). This is intentionally NVIDIA-only and honest: callers must treat None as “no thermal sensor available”, not “cool”.