Skip to content

BUG: Fix wrapping of nvrtcBundledHeadersInfo - #2754

Merged
mdboom merged 1 commit into
NVIDIA:mainfrom
mdboom:nvrtc-bugfix
Sep 3, 2026
Merged

BUG: Fix wrapping of nvrtcBundledHeadersInfo#2754
mdboom merged 1 commit into
NVIDIA:mainfrom
mdboom:nvrtc-bugfix

Conversation

@mdboom

@mdboom mdboom commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Due to how the nvrtcBundledHeadersInfo struct was spelled in the header, this caused our legacy generator to generate an unnecessary anonymous class and a class that it inherits from that can't be instantiated with its own memory.

This uses a small fix in the generator to generate the right thing, and then adds some regression tests.

This was discovered while looking at the new bundled header APIs as part of #2363, but it is not required for that work -- the implementation there doesn't actually need to use these APIs directly anyway. This is just a latent bug for any users who want to use these new APIs directly from cuda-bindings.

@github-actions github-actions Bot added the cuda.bindings Everything related to the cuda.bindings module label Sep 2, 2026
@mdboom mdboom self-assigned this Sep 2, 2026
@mdboom mdboom added bug Something isn't working P0 High priority - Must do! labels Sep 2, 2026
@mdboom mdboom added this to the cuda.bindings 13.4.0 & 12.9.8 milestone Sep 2, 2026
@github-actions

This comment has been minimized.

@mdboom
mdboom requested a review from rwgk September 2, 2026 18:51

@rwgk rwgk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but see my question in an inline comment.

NVRTC defines the following types and functions for bundled headers installation and management.

.. autoclass:: cuda.bindings.nvrtc.nvrtcBundledHeadersInfo
.. autoclass:: cuda.bindings.nvrtc.nvrtcBundledHeadersInfo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two identical lines here now. Is that intentional? If not, is it harmless?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will document this twice. I think I'm still going to merge this as-is (and fix the doc bug in a follow-up), since the code is otherwise very broken and I'd like to get this in the next release.

@mdboom
mdboom merged commit 0c0ced0 into NVIDIA:main Sep 3, 2026
215 of 221 checks passed
@github-actions

github-actions Bot commented Sep 3, 2026

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda.bindings Everything related to the cuda.bindings module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants