fix: Use `LOG_DEBUG` for CUDA version detection (#3757)

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
This commit is contained in:
Julien Jerphanion 2025-01-17 15:42:18 +01:00 committed by GitHub
parent c59969ab05
commit 503f0aa9b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 9 deletions

View File

@ -103,11 +103,11 @@ namespace mamba
return cuda_version;
}
}
LOG_WARNING << "Could not extract CUDA version from: " << cuda_version;
LOG_DEBUG << "Could not extract CUDA version from: " << cuda_version;
}
else
{
LOG_WARNING << "CUDA version not found in the JSON file (`.cuda.version` is missing)";
LOG_DEBUG << "CUDA version not found in the JSON file (`.cuda.version` is missing)";
}
}
else
@ -190,13 +190,7 @@ namespace mamba
}
}
LOG_WARNING << "Could not find CUDA version by, in this order:\n";
LOG_WARNING << " - inspecting the `CONDA_OVERRIDE_CUDA` environment variable\n";
LOG_WARNING << " - parsing the : " << cuda_version_file << "\n";
LOG_WARNING << " - parsing the output of `nvidia-smi --query -u -x`\n";
LOG_WARNING << "\n";
LOG_WARNING << "We recommend setting the `CONDA_OVERRIDE_CUDA` environment variable\n";
LOG_WARNING << "to the desired CUDA version.";
LOG_DEBUG << "CUDA not found";
return "";
}