Skip to content
Merged
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
2 changes: 1 addition & 1 deletion batchflow/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class GPUResourceMonitor(ResourceMonitor):
""" If the `CUDA_VISIBLE_DEVICES` is set, check it and return device numbers. Otherwise, return [0]. """
def __init__(self, function=None, frequency=0.1, gpu_list=None, **kwargs):
if pynvml is None:
raise ImportError('Install Python interface for pynvml')
raise ImportError('Install nvidia-ml-py to use GPU monitoring functionality')
super().__init__(function=function, frequency=frequency, **kwargs)

# Fallback to env variable
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ research = [

monitor = [
"psutil",
"pynvml"
"nvidia-ml-py"
]

nn = [
Expand Down