Skip to content

Commit

Permalink
hmem/cuda: Modify the logging for nvml dlopen
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
shijin-aws committed Jul 26, 2024
1 parent 18df9f9 commit 3235043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hmem_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 3235043

Please sign in to comment.