Added support for some NVML sensors.

GPU temp sensor and clock reasons.
This commit is contained in:
2025-02-02 21:42:30 -08:00
parent 4cb9ef42a6
commit 4c5321bc4e
6 changed files with 185 additions and 22 deletions
+2 -2
View File
@@ -89,11 +89,11 @@ void print_icx3_temps_oneline(struct card_info *card)
get_temp_sensors(temps, card);
for (int i=0; i<ICX3_NUM_TEMP_SENSORS; i++) {
if (i == 0 || strncmp(icx3_temp_sensor_names[i], icx3_temp_sensor_names[i-1], 3))
/* If this math seems a little jank, it's so we can optionally inject the NVML and vram temps into the oneline */
if (i > 0 && strncmp(icx3_temp_sensor_names[i], icx3_temp_sensor_names[i-1], 3))
printf(" %.3s", icx3_temp_sensor_names[i]);
printf(" %3.0f", temps[i]);
}
printf("°C");
}
void get_available_fans(char *fans_avail, struct card_info *card)