Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving from pynvml to nvidia-ml-py #928

Open
Tracked by #17
jakirkham opened this issue Feb 14, 2023 · 2 comments
Open
Tracked by #17

Moving from pynvml to nvidia-ml-py #928

jakirkham opened this issue Feb 14, 2023 · 2 comments

Comments

@jakirkham
Copy link
Member

Currently this is making use of pynvml in a few places:

ucx-py/ucp/__init__.py

Lines 25 to 28 in 1ef7594

try:
import pynvml
except ImportError:
pynvml = None

ucx-py/ucp/__init__.py

Lines 51 to 59 in 1ef7594

def _is_mig_device(handle):
try:
pynvml.nvmlDeviceGetMigMode(handle)[0]
except pynvml.NVMLError:
return False
return True
for dev_idx in range(device_count):
handle = pynvml.nvmlDeviceGetHandleByIndex(dev_idx)

However we would like to move to nvidia-ml-py in the future. Raising this issue to track this work

@wence-
Copy link
Contributor

wence- commented Feb 16, 2023

Are the interfacing identical, just the imports differ?

@jakirkham
Copy link
Member Author

Have not looked deeply, but the imports look the same. Maybe there are subtle differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants