Files
evga-icx/nvidia-sensors.h
T
moosecrap fdf90ef790 Fixes when compiling with both NVML and DCGM.
NVML temp code updated (driver version ~555 and up)
2026-09-30 01:18:05 -07:00

23 lines
1.0 KiB
C

#include <nvml.h>
#include "evga-card.h"
static struct clock_reason nvml_clock_reason_names[] =
{
{nvmlClocksEventReasonGpuIdle, "Idle", "GPU idle"},
{nvmlClocksEventReasonApplicationsClocksSetting, "AppClk", "Application clocks"},
{nvmlClocksEventReasonSwPowerCap, "Pwr", "Power cap"},
{nvmlClocksThrottleReasonHwSlowdown, "HWSlow", "Hardware slowdown"},
{nvmlClocksEventReasonSyncBoost, "Sync", "Sync boost"},
{nvmlClocksEventReasonSwThermalSlowdown, "SWTherm", "Software thermal"},
{nvmlClocksThrottleReasonHwThermalSlowdown, "HWTherm", "Hardware thermal"},
{nvmlClocksThrottleReasonHwPowerBrakeSlowdown, "HWPower", "Hardware power brake"},
{nvmlClocksEventReasonDisplayClockSetting, "DispClk", "Display clock"}
};
void init_nvml();
void get_nvml_handle(struct card_info *card);
void print_nvml_clock_reason(int compact, struct card_info *card);
unsigned int get_nvml_temp(struct card_info *card);
unsigned long long get_nvml_clock_reasons(struct card_info *card);
unsigned int get_nvml_mem_util(struct card_info *card);