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 #150

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

Moving from pynvml to nvidia-ml-py #150

jakirkham opened this issue Feb 14, 2023 · 3 comments

Comments

@jakirkham
Copy link
Member

jakirkham commented Feb 14, 2023

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

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

@shermansiu
Copy link

shermansiu commented Feb 2, 2024

I'm still interested in this a year later.

The following packages are incompatible
├─ jupyterlab-nvdashboard is installable with the potential options
│  ├─ jupyterlab-nvdashboard [0.1.11|0.1.11191029|...|0.9.0a] would require
│  │  └─ pynvml, which can be installed;
│  └─ jupyterlab-nvdashboard [0.3.0|0.3.0a200420|...|0.4.0] would require
│     └─ bokeh <2  with the potential options
│        ├─ bokeh [0.12.10|0.12.11|...|1.4.0] would require
│        │  └─ python [2.7* |>=2.7,<2.8.0a0 ], which can be installed;
│        ├─ bokeh [0.12.10|0.12.11|...|0.13.0] would require
│        │  └─ python [3.5* |>=3.5,<3.6.0a0 ], which can be installed;
│        ├─ bokeh [0.12.10|0.12.11|...|0.12.9] would require
│        │  └─ python 3.6* , which can be installed;
│        ├─ bokeh [0.12.16|0.13.0|...|1.4.0] would require
│        │  └─ python >=3.6,<3.7.0a0 , which can be installed;
│        ├─ bokeh [0.13.0|1.0.0|...|1.4.0] would require
│        │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│        └─ bokeh [1.3.4|1.4.0] would require
│           └─ python >=3.8,<3.9.0a0 , which can be installed;
└─ nvidia-ml-py is not installable because it requires
   └─ pynvml 9999999999 , which conflicts with any installable versions previously reported.

I have to use pip to get around it, but I'm not a fan of mixing Conda and pip packages.

@jakirkham
Copy link
Member Author

Thanks Sherman! 🙏

Appreciate the reminder

This would need to be a RAPIDS-wide change as there are several projects that use pynvml currently. We have these tracked already, but this got downprioritized relative to other things last year (like the CUDA 12 bringup). It is a good idea to revisit it though

One tricky piece is pynvml has an smi module (so pynvml.smi), which nvidia-ml-py does not. In the few cases where that is used, we lack a clear replacement strategy. We would either need to drop usages of pynvml.smi or come up with a replacement. That hasn't been figured out yet

@jakirkham
Copy link
Member Author

Should add the version constraint is intentional as without it the two different packages will clobber each other. For reference, please see these lines in the conda-forge recipe for nvidia-ml-py

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