Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nbtools/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def get_available_gpus(n=1, min_free_memory=0.9, max_processes=2, verbose=False,
try:
import pynvml
except ImportError as exception:
raise ImportError('Install Python interface for nvidia_smi') from exception
raise ImportError('Install nvidia-ml-py package') from exception

try:
error_message = None
Expand Down Expand Up @@ -220,7 +220,7 @@ def get_gpu_free_memory(index, ratio=True):
try:
import pynvml
except ImportError as exception:
raise ImportError('Install Python interface for nvidia_smi') from exception
raise ImportError('Install nvidia-ml-py package') from exception

pynvml.nvmlInit()
pynvml.nvmlDeviceGetCount()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
zip_safe=False,
platforms='any',
install_requires=[
'pynvml>=11.5.0',
'nvidia-ml-py>=12.0.0',
'blessed>=1.17',
'psutil>=5.6',
'requests>=2.24',
Expand Down
Loading