-
Notifications
You must be signed in to change notification settings - Fork 310
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
Switch to pynvml_utils.smi
for PyNVML 12
#4863
Switch to pynvml_utils.smi
for PyNVML 12
#4863
Conversation
de169b9
to
9d7db9d
Compare
9d7db9d
to
e305416
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jakirkham !
I left some comments - I don't think cugraph should be importing smi at all. As far as I can tell, it's not actually using smi queries anywhere.
benchmarks/cugraph/standalone/bulk_sampling/bench_cugraph_training.py
Outdated
Show resolved
Hide resolved
This is also quoted or commented, which makes it unused. Given this go ahead and drop it. If the code is needed again, it is simple to grab it from history and readd it.
benchmarks/cugraph/standalone/bulk_sampling/trainers/pyg/trainers_pyg.py
Outdated
Show resolved
Hide resolved
…ers_pyg.py Co-authored-by: jakirkham <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding suggestion to remove unused smi
code below
benchmarks/cugraph/standalone/bulk_sampling/bench_cugraph_training.py
Outdated
Show resolved
Hide resolved
benchmarks/cugraph/standalone/bulk_sampling/bench_cugraph_training.py
Outdated
Show resolved
Hide resolved
benchmarks/cugraph/standalone/bulk_sampling/bench_cugraph_training.py
Outdated
Show resolved
Hide resolved
benchmarks/cugraph/standalone/bulk_sampling/trainers/pyg/trainers_pyg.py
Show resolved
Hide resolved
Thanks for the feedback! 🙏 Cleaned up the bits discussed above. Please take another look when you have a moment |
Sounds like we are happy with these changes. Will go ahead and merge If anything else comes up, happy to discuss |
/merge |
In the PyNVML 12 upgrade, the
pynvml
package now depends onnvidia-ml-py
. Howevernvidia-ml-py
does not supply thesmi
submodule. To avoid clobbering the package, this module was moved from thepynvml
namespace topynvml_utils
. As a result theimport
here needs the same tweak.