Skip to content

Conversation

@mdboom
Copy link
Contributor

@mdboom mdboom commented Jan 29, 2026

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. 🎉

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Jan 29, 2026

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.

@mdboom
Copy link
Contributor Author

mdboom commented Jan 29, 2026

/ok to test

Copy link
Contributor

Copilot AI left a 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 (_nvmlnvml). 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._nvml to cuda.bindings.nvml
  • Renamed Cython module imports from cy_nvml to cynvml
  • 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.

@github-actions

This comment has been minimized.

@mdboom
Copy link
Contributor Author

mdboom commented Jan 29, 2026

/ok to test

Copy link
Collaborator

@rwgk rwgk left a 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>
@mdboom mdboom enabled auto-merge (squash) January 30, 2026 14:00
@mdboom
Copy link
Contributor Author

mdboom commented Jan 30, 2026

/ok to test

@mdboom mdboom merged commit dd12efe into NVIDIA:main Jan 30, 2026
68 of 86 checks passed
@kkraus14
Copy link
Collaborator

It looks like every 12.9 job failed here. How / why was this merged?

@github-actions
Copy link

Doc Preview CI
Preview removed because the pull request was closed or merged.

mdboom added a commit that referenced this pull request Jan 30, 2026
kkraus14 pushed a commit that referenced this pull request Jan 30, 2026
mdboom added a commit to mdboom/cuda-python that referenced this pull request Jan 30, 2026
* 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>
kkraus14 added a commit that referenced this pull request Jan 30, 2026
* 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>
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

Successfully merging this pull request may close these issues.

3 participants