Added NVML memory controller load percentage.

This commit is contained in:
2025-02-07 08:23:46 -08:00
parent 442a524243
commit c4e7f7e8b9
5 changed files with 59 additions and 31 deletions
+4
View File
@@ -226,6 +226,8 @@ void print_gpu_info(int gpu_num, struct card_info *gpu, int compact) {
printf("°C ");
#ifdef USE_NVML
printf("%s MEM %s", header_start, header_end);
printf("%3d%%", get_nvml_mem_util(gpu));
printf("%s CLK %s", header_start, header_end);
print_nvml_clock_reason(1, gpu);
#endif
@@ -256,8 +258,10 @@ void print_gpu_info(int gpu_num, struct card_info *gpu, int compact) {
#endif
#ifdef USE_NVML
printf("Mem util: %d%%\n", get_nvml_mem_util(gpu));
printf("Clock reasons: ");
print_nvml_clock_reason(0, gpu);
printf("\n");
#endif
}