Skip to content

Commit

Permalink
fix: Use LOG_DEBUG for CUDA version detection
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <[email protected]>
  • Loading branch information
jjerphan committed Jan 16, 2025
1 parent c59969a commit 5e54b2f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions libmamba/src/core/virtual_packages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -190,13 +190,13 @@ 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 << "Could not find CUDA version by, in this order:\n";
LOG_DEBUG << " - inspecting the `CONDA_OVERRIDE_CUDA` environment variable\n";
LOG_DEBUG << " - parsing the : " << cuda_version_file << "\n";
LOG_DEBUG << " - parsing the output of `nvidia-smi --query -u -x`\n";
LOG_DEBUG << "\n";
LOG_DEBUG << "We recommend setting the `CONDA_OVERRIDE_CUDA` environment variable\n";
LOG_DEBUG << "to the desired CUDA version.";
return "";
}

Expand Down

0 comments on commit 5e54b2f

Please sign in to comment.