mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-23 15:45:54 +08:00
[misc][cuda] add warning for pynvml user (#7675)
This commit is contained in:
parent
e6d811dd13
commit
ad28a74beb
@ -18,6 +18,12 @@ logger = init_logger(__name__)
|
||||
_P = ParamSpec("_P")
|
||||
_R = TypeVar("_R")
|
||||
|
||||
if pynvml.__file__.endswith("__init__.py"):
|
||||
logger.warning(
|
||||
"You are using a deprecated `pynvml` package. Please install"
|
||||
" `nvidia-ml-py` instead. See https://pypi.org/project/pynvml "
|
||||
"for more information.")
|
||||
|
||||
# NVML utils
|
||||
# Note that NVML is not affected by `CUDA_VISIBLE_DEVICES`,
|
||||
# all the related functions work on real physical device ids.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user