Skip to content

Commit 503f0aa

Browse files
authored
fix: Use LOG_DEBUG for CUDA version detection (#3757)
Signed-off-by: Julien Jerphanion <[email protected]>
1 parent c59969a commit 503f0aa

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

libmamba/src/core/virtual_packages.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ namespace mamba
103103
return cuda_version;
104104
}
105105
}
106-
LOG_WARNING << "Could not extract CUDA version from: " << cuda_version;
106+
LOG_DEBUG << "Could not extract CUDA version from: " << cuda_version;
107107
}
108108
else
109109
{
110-
LOG_WARNING << "CUDA version not found in the JSON file (`.cuda.version` is missing)";
110+
LOG_DEBUG << "CUDA version not found in the JSON file (`.cuda.version` is missing)";
111111
}
112112
}
113113
else
@@ -190,13 +190,7 @@ namespace mamba
190190
}
191191
}
192192

193-
LOG_WARNING << "Could not find CUDA version by, in this order:\n";
194-
LOG_WARNING << " - inspecting the `CONDA_OVERRIDE_CUDA` environment variable\n";
195-
LOG_WARNING << " - parsing the : " << cuda_version_file << "\n";
196-
LOG_WARNING << " - parsing the output of `nvidia-smi --query -u -x`\n";
197-
LOG_WARNING << "\n";
198-
LOG_WARNING << "We recommend setting the `CONDA_OVERRIDE_CUDA` environment variable\n";
199-
LOG_WARNING << "to the desired CUDA version.";
193+
LOG_DEBUG << "CUDA not found";
200194
return "";
201195
}
202196

0 commit comments

Comments
 (0)