Unverified Commit 70c094ad authored by youkaichao's avatar youkaichao Committed by GitHub
Browse files

[misc][cuda] improve pynvml warning (#7852)

parent 2059b8d9
...@@ -21,7 +21,9 @@ _R = TypeVar("_R") ...@@ -21,7 +21,9 @@ _R = TypeVar("_R")
if pynvml.__file__.endswith("__init__.py"): if pynvml.__file__.endswith("__init__.py"):
logger.warning( logger.warning(
"You are using a deprecated `pynvml` package. Please install" "You are using a deprecated `pynvml` package. Please install"
" `nvidia-ml-py` instead. See https://pypi.org/project/pynvml " " `nvidia-ml-py` instead, and make sure to uninstall `pynvml`."
" When both of them are installed, `pynvml` will take precedence"
" and cause errors. See https://pypi.org/project/pynvml "
"for more information.") "for more information.")
# NVML utils # NVML utils
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment