-
Notifications
You must be signed in to change notification settings - Fork 242
Make cuda.bindings.nvml public #1544
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
Conversation
|
Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test |
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.
Pull request overview
This PR makes the cuda.bindings.nvml module public by removing its underscore prefix (_nvml → nvml). The changes update import statements across test files, core modules, and internal bindings to reflect this new public API.
Changes:
- Updated all imports from
cuda.bindings._nvmltocuda.bindings.nvml - Renamed Cython module imports from
cy_nvmltocynvml - Updated copyright year to include 2026 across modified files
Reviewed changes
Copilot reviewed 21 out of 25 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| cuda_core/tests/system/test_system_device.py | Updated nvml import to use public API |
| cuda_core/cuda/core/system/exceptions.py | Updated nvml import and copyright year |
| cuda_core/cuda/core/system/_system_events.pyx | Updated nvml import and copyright year |
| cuda_core/cuda/core/system/_system.pyx | Updated nvml import and copyright year |
| cuda_core/cuda/core/system/_nvml_context.pyx | Updated nvml import and copyright year |
| cuda_core/cuda/core/system/_device.pyx | Updated nvml import to use public API |
| cuda_bindings/tests/nvml/util.py | Updated nvml import and copyright year |
| cuda_bindings/tests/nvml/test_pynvml.py | Updated nvml import and copyright year |
| cuda_bindings/tests/nvml/test_pci.py | Updated nvml import to use public API |
| cuda_bindings/tests/nvml/test_page_retirement.py | Updated nvml import and copyright year |
| cuda_bindings/tests/nvml/test_nvlink.py | Updated nvml import and copyright year |
| cuda_bindings/tests/nvml/test_init.py | Updated nvml import and copyright year |
| cuda_bindings/tests/nvml/test_gpu.py | Updated nvml import to use public API |
| cuda_bindings/tests/nvml/test_device.py | Updated nvml import to use public API |
| cuda_bindings/tests/nvml/test_cuda.py | Updated nvml import and copyright year |
| cuda_bindings/tests/nvml/test_compute_mode.py | Updated nvml import to use public API |
| cuda_bindings/tests/nvml/conftest.py | Updated nvml import and copyright year |
| cuda_bindings/cuda/bindings/cy_nvml.pyx | Updated internal Cython import from _nvml to nvml |
| cuda_bindings/cuda/bindings/_test_helpers/arch_check.py | Updated nvml import to use public API |
| cuda_bindings/cuda/bindings/_nvml.pxd | Renamed Cython import from cy_nvml to cynvml |
| cuda_bindings/cuda/bindings/_internal/_nvml.pxd | Renamed Cython import from cy_nvml to cynvml |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This comment has been minimized.
This comment has been minimized.
|
/ok to test |
rwgk
left a comment
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.
Awesome!
ImportError can mask bugs. ModuleNotFoundError seems safer here?
Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com>
|
/ok to test |
|
It looks like every |
|
* cuda.bindings.nvml: Small follow-on to NVIDIA#1524 * cuda.bindings.nvml: Make public * Fix NVML is compatible * Update cuda_core/cuda/core/system/_system.pyx Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com> --------- Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com>
* Make cuda.bindings.nvml public (#1544) * cuda.bindings.nvml: Small follow-on to #1524 * cuda.bindings.nvml: Make public * Fix NVML is compatible * Update cuda_core/cuda/core/system/_system.pyx Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com> --------- Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com> * Update cuda_core/cuda/core/system/_system.pyx Co-authored-by: Keith Kraus <keith.j.kraus@gmail.com> --------- Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com> Co-authored-by: Keith Kraus <keith.j.kraus@gmail.com>
With all of the APIs vetted (at least from what they look like on the outside), I think we are ready to make this public. 🎉