From d9ed4c4aef13540152996a6c705b3df3e24936d7 Mon Sep 17 00:00:00 2001 From: Shi Jin Date: Thu, 25 Jul 2024 20:36:37 +0000 Subject: [PATCH] hmem/cuda: Modify the logging for nvml dlopen Move the libnvml.so -> libnvml.so.1 dlopen log from warning to info as they are informational only. Adjust the warning log when libnvlml.so.1 dlopen failure. Signed-off-by: Shi Jin --- src/hmem_cuda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hmem_cuda.c b/src/hmem_cuda.c index 6b9f3e3b198..21303041129 100644 --- a/src/hmem_cuda.c +++ b/src/hmem_cuda.c @@ -496,12 +496,12 @@ static int cuda_hmem_dl_init(void) cuda_attr.nvml_handle = dlopen("libnvidia-ml.so", RTLD_NOW); if (!cuda_attr.nvml_handle) { - FI_WARN(&core_prov, FI_LOG_CORE, + FI_INFO(&core_prov, FI_LOG_CORE, "Failed to dlopen libnvidia-ml.so. Trying libnvidia-ml.so.1\n"); cuda_attr.nvml_handle = dlopen("libnvidia-ml.so.1", RTLD_NOW); if (!cuda_attr.nvml_handle) { FI_WARN(&core_prov, FI_LOG_CORE, - "Failed to dlopen libnvidia-ml.so.1 also, bypassing nvml calls\n"); + "Failed to dlopen libnvidia-ml.so or libnvidia-ml.so.1, bypassing nvml calls\n"); } }