Skip to content

Commit

Permalink
Switch to pynvml_utils.smi for PyNVML 12
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Jan 13, 2025
1 parent 8507cbf commit 9d7db9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
def init_pytorch_worker(rank: int, use_rmm_torch_allocator: bool = False) -> None:
import cupy
import rmm
from pynvml.smi import nvidia_smi
from pynvml_utils.smi import nvidia_smi

smi = nvidia_smi.getInstance()
pool_size = 16e9 # FIXME calculate this
Expand Down
2 changes: 1 addition & 1 deletion python/utils/gpu_metric_poller.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import os
import sys
import threading
from pynvml import smi
from pynvml_utils import smi


class GPUMetricPoller(threading.Thread):
Expand Down

0 comments on commit 9d7db9d

Please sign in to comment.