Added support for some NVML sensors.
GPU temp sensor and clock reasons.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include <nvml.h>
|
||||
|
||||
#include "evga-card.h"
|
||||
|
||||
struct clock_reason {
|
||||
unsigned long long mask;
|
||||
char *short_name;
|
||||
char *long_name;
|
||||
};
|
||||
|
||||
static struct clock_reason 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"}
|
||||
};
|
||||
|
||||
int init_nvml();
|
||||
void print_nvml_temp(int compact, 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);
|
||||
Reference in New Issue
Block a user