Skip to content

Fix version parsing in cuda_core; Allow new enums to be added to cuda_bindings - #2451

Merged
mdboom merged 2 commits into
NVIDIA:mainfrom
mdboom:version-parsing-bug
Jul 29, 2026
Merged

Fix version parsing in cuda_core; Allow new enums to be added to cuda_bindings#2451
mdboom merged 2 commits into
NVIDIA:mainfrom
mdboom:version-parsing-bug

Conversation

@mdboom

@mdboom mdboom commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This fixes 2 bugs found when testing cuda_core against the cuda_bindings 13.4.0b1 release.

  • The parsing of the cuda_bindings version assumed the version number was full of integers. It is actually full of eels PEP 440-compliant
  • The test that ensures that cuda_bindings and cuda_core enums are in sync wasn't forward compatible with the case where cuda_bindings may add more values. This test has been fixed.

@mdboom
mdboom requested a review from Andy-Jost July 29, 2026 17:24
@github-actions github-actions Bot added the cuda.core Everything related to the cuda.core module label Jul 29, 2026
@mdboom mdboom self-assigned this Jul 29, 2026
@mdboom mdboom added the P0 High priority - Must do! label Jul 29, 2026
@mdboom mdboom added this to the cuda.core next milestone Jul 29, 2026
@github-actions

Copy link
Copy Markdown

@Andy-Jost Andy-Jost 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.

Looks good!

For the future:
The duplication of _parse_version_triple is due to an existing import cycle that need not be fixed in this PR.

  version.pyx
    → cuda_utils.pyx
      → driver_cu_result_explanations.py / runtime_cuda_error_explanations.py
        → enum_explanations_helpers.py
          → version.pyx

@mdboom
mdboom merged commit 97df94c into NVIDIA:main Jul 29, 2026
105 of 107 checks passed
github-actions Bot pushed a commit that referenced this pull request Jul 30, 2026
Removed preview folders for the following PRs:
- PR #2424
- PR #2445
- PR #2451
- PR #2452
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.core Everything related to the cuda.core module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants