Function nvapi_hi::sys::gpu::thermal::NvAPI_GPU_GetThermalSettings [] [src]

pub unsafe fn NvAPI_GPU_GetThermalSettings(
    hPhysicalGPU: NvPhysicalGpuHandle,
    sensorIndex: u32,
    pThermalSettings: *mut NV_GPU_THERMAL_SETTINGS_V1
) -> i32

This function retrieves the thermal information of all thermal sensors or specific thermal sensor associated with the selected GPU.

Thermal sensors are indexed 0 to NVAPI_MAX_THERMAL_SENSORS_PER_GPU-1. - To retrieve specific thermal sensor info, set the sensorIndex to the required thermal sensor index. - To retrieve info for all sensors, set sensorIndex to NVAPI_THERMAL_TARGET_ALL.