Skip to content

Commit

Permalink
[misc][cuda] add warning for pynvml user (vllm-project#7675)
Browse files Browse the repository at this point in the history
  • Loading branch information
youkaichao authored Aug 20, 2024
1 parent e6d811d commit ad28a74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vllm/platforms/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
_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.
Expand Down

0 comments on commit ad28a74

Please sign in to comment.