From 9d21b5baa6ce52eec323e10eebda5ce69e64cf04 Mon Sep 17 00:00:00 2001 From: Graeme Andrew Stewart Date: Tue, 24 Mar 2026 18:50:54 +0100 Subject: [PATCH] Reduce the severity of Nvidia messages The case when the library or CLI is not found is totally normal: info(). Also, when the library is found, but there are no GPUs is odd, but not broken: info(). --- package/src/nvidiamon.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/src/nvidiamon.cpp b/package/src/nvidiamon.cpp index 53a9edd..7f3b5ae 100644 --- a/package/src/nvidiamon.cpp +++ b/package/src/nvidiamon.cpp @@ -105,7 +105,7 @@ nvidiamon::nvidiamon() { valid = false; active_method = MonitorMethod::NONE; - warning("Both NVML and nvidia-smi failed. NVIDIA monitoring disabled."); + info("Both NVML and nvidia-smi failed. NVIDIA monitoring disabled."); } nvidiamon::~nvidiamon() { @@ -428,7 +428,7 @@ bool nvidiamon::test_nvidia_smi() { } nvidiamon::ngpus = gpus; if (gpus == 0) { - warning("Executed 'nvidia-smi -L', but no GPUs found"); + info("Executed 'nvidia-smi -L', but no GPUs found"); return false; } else if (gpus > 4) { warning( @@ -444,7 +444,7 @@ bool nvidiamon::load_nvml_lib() { nvml_handle = dlopen("libnvidia-ml.so.1", RTLD_NOW); } if (!nvml_handle) { - warning("Failed to load libnvidia-ml.so: " + std::string(dlerror())); + info("Failed to load libnvidia-ml.so: " + std::string(dlerror())); return false; } @@ -515,7 +515,7 @@ bool nvidiamon::init_nvml() { } if (gpus == 0) { - warning("nvmlInit() succeeded but no GPUs found"); + info("nvmlInit() succeeded but no GPUs found"); nvmlShutdown(); return false; }