Added support for reading VRAM and HotSpot temperatures.

This commit is contained in:
2025-02-03 06:15:26 -08:00
parent 54885e16f0
commit 8d4a8f7ee1
11 changed files with 200 additions and 34 deletions
-8
View File
@@ -10,14 +10,6 @@ void init_nvml()
printf("Could not init NVML: %s\n", nvmlErrorString(result));
}
void print_nvml_temp(int compact, struct card_info *card)
{
if (compact)
printf(" %3d", get_nvml_temp(card));
else
printf("GPU1: %+d°C\n", get_nvml_temp(card));
}
void print_nvml_clock_reason(int compact, struct card_info *card)
{
unsigned long long reasons = get_nvml_clock_reasons(card);