Skip to content

Commit

Permalink
fix ImportError when pynvml not available
Browse files Browse the repository at this point in the history
Signed-off-by: conroy-cheers <[email protected]>
  • Loading branch information
conroy-cheers committed Oct 27, 2024
1 parent 086d662 commit da79e3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vllm/platforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
is_cuda = True
finally:
pynvml.nvmlShutdown()
except ImportError:
pass
except pynvml.NVMLError_LibraryNotFound:
# CUDA is supported on Jetson, but NVML is not.
import os
Expand Down

0 comments on commit da79e3e

Please sign in to comment.