Skip to content

Commit 6d8e602

Browse files
Replace pynvml with nvidia-ml-py to fix deprecation warning
Co-authored-by: AlexeyKozhevin <[email protected]>
1 parent 471eabc commit 6d8e602

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

batchflow/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class GPUResourceMonitor(ResourceMonitor):
318318
""" If the `CUDA_VISIBLE_DEVICES` is set, check it and return device numbers. Otherwise, return [0]. """
319319
def __init__(self, function=None, frequency=0.1, gpu_list=None, **kwargs):
320320
if pynvml is None:
321-
raise ImportError('Install Python interface for pynvml')
321+
raise ImportError('Install nvidia-ml-py to use GPU monitoring functionality')
322322
super().__init__(function=function, frequency=frequency, **kwargs)
323323

324324
# Fallback to env variable

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ research = [
4242

4343
monitor = [
4444
"psutil",
45-
"pynvml"
45+
"nvidia-ml-py"
4646
]
4747

4848
nn = [

0 commit comments

Comments
 (0)