Skip to content

test(cuda.bindings): remove CUDA 13.1-only tests from cuda_bindings_12 - #3663

Open
mdboom wants to merge 1 commit into
NVIDIA:mainfrom
mdboom:issue3591
Open

mdboom wants to merge 1 commit into
NVIDIA:mainfrom
mdboom:issue3591

Conversation

@mdboom

@mdboom mdboom commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Closes #3591. Part of #2077.

Summary

Eight tests in cuda_bindings_12 could never run there, because they exercise APIs the CUDA 12 bindings don't have. They were added for CTK 13.1 (#1337, #1467) when one test suite served both majors, and the CUDA 12 root kept them. This PR deletes them from cuda_bindings_12:

 cuda_bindings_12/tests/test_cuda.py
-    test_cuGraphGetId, test_cuGraphExecGetId, test_cuGraphNodeGetLocalId,
-    test_cuGraphNodeGetToolsId, test_cuGraphNodeGetContainingGraph,
-    test_cuStreamGetDevResource, test_cuDevSmResourceSplit
 cuda_bindings_12/tests/test_nvfatbin.py
-    test_nvfatbin_add_tile_ir   (+ the TILEIR fixture, TILEIR_b64 data, get_version helper)
  • The seven driver tests skip on driver_version_less_than(13010) or not supportsCudaAPI(...). None of these functions exists in cuda_bindings_12/cuda/bindings/cydriver.pxd, so the condition is always true in this root, whatever the driver.
  • test_nvfatbin_add_tile_ir needs nvFatbin 13.1+. cuda.pathfinder could load a CUDA 13 nvFatbin for the 12.x bindings (it tries libnvfatbin.so.13 first), but the support policy (cuda_bindings_12/docs/source/support.rst, item 3) is that "cuda.bindings 12.x supports any Toolkit 12.y". So that pairing is unsupported, and no CI configuration is added for it. The generated nvFatbinAddTileIR binding in the CUDA 12 root is left alone (generated output).
  • Other bindings root: cuda_bindings_13 keeps all eight tests, which pass in its 30 configurations, so no change is needed there.

Evidence

CI coverage: on main, all eight tests skip in all 20 CUDA 12 configurations ("Requires CUDA 13.1+" or "TileIR API is not supported in CUDA < 13.1"). After this change they no longer exist in cuda_bindings_12, so toolshed/find_skipped_tests.py no longer reports them.

Locally (cuda-bindings 12.9.11): the remaining tests in cuda_bindings_12/tests/test_cuda.py and test_nvfatbin.py pass (106 passed).

Confirming in CI: no CUDA 12 cuda.bindings job in this PR's CI run should report any of the eight tests. For example:

gh run view <CI run id> --repo NVIDIA/cuda-python --log | grep -E "cu12" | grep -cE "test_cuGraph(GetId|ExecGetId|NodeGetLocalId|NodeGetToolsId|NodeGetContainingGraph)|test_cuStreamGetDevResource|test_cuDevSmResourceSplit|test_nvfatbin_add_tile_ir"   # expect 0

Merge Danger

Door: two-way. Test-only change.

Blast Radius: two test files in cuda_bindings_12; only tests that could never run are removed.

Reviewers: please feel free to push commits directly to this PR to improve it.

🤖 Generated with Claude Code

Seven test_cuda.py tests (cuGraphGetId, cuGraphExecGetId,
cuGraphNodeGetLocalId, cuGraphNodeGetToolsId, cuGraphNodeGetContainingGraph,
cuStreamGetDevResource, cuDevSmResourceSplit) exercise driver APIs the CUDA
12 bindings do not have, so their skip condition is always true in this
root. test_nvfatbin_add_tile_ir needs nvFatbin 13.1+, which is outside the
cuda.bindings 12.x support policy (any Toolkit 12.y).

Delete them, along with the TileIR fixture data and get_version helper
only they used. The cuda_bindings_13 copies are unchanged.

Closes NVIDIA#3591.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mdboom mdboom added this to the cuda.bindings 13.6.0 & 12.9.12 milestone Nov 30, 2026
@mdboom mdboom added test Improvements or additions to tests cuda.bindings Everything related to the cuda.bindings module labels Nov 30, 2026
@mdboom mdboom self-assigned this Nov 30, 2026
@mdboom
mdboom requested review from juenglin and rwgk November 30, 2026 20:30
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Removed CUDA 13.1-specific test coverage for graph and stream resource identifiers, nested graph ownership, SM resource grouping, and TileIR handling in nvfatbin workflows.
    • These changes reduce test coverage for those areas; no changes to public declarations or end-user behavior are reported.

The CUDA 12 test suite no longer contains tests for CUDA 13.1-only driver APIs or the TileIR nvFatbin API.

Changes: CUDA 13.1-only tests

Layer / File(s) Summary
Remove CUDA 13.1 driver API tests
cuda_bindings_12/tests/test_cuda.py
Removes tests for graph and node IDs, containing-graph lookup, stream device resources, and SM resource splitting.
Remove the TileIR nvFatbin test
cuda_bindings_12/tests/test_nvfatbin.py
Removes the TileIR fixture, encoded test data, decoding imports, and the nvFatbin test.

Assessment against linked issues

Objective Addressed Explanation
Remove the CUDA 13.1-only driver tests and TileIR test from cuda_bindings_12 [#3591] ✅

Suggested reviewers: rwgk

Change: Other · Severity of issue fixed: Low

Merge Risk: Minimal · up to b6c05

This change only removes tests that could never run in the CUDA 12 bindings, along with fixture data used solely by one of them. It does not alter shipped behavior. No merge-blocking risk remains.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between daeda6d and b6c059c.

Files selected for processing: 2

  • cuda_bindings_12/tests/test_cuda.py
  • cuda_bindings_12/tests/test_nvfatbin.py
Files with no reviewable changes: 2

  • cuda_bindings_12/tests/test_cuda.py
  • cuda_bindings_12/tests/test_nvfatbin.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

This branch has not been deployed

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

Labels

cuda.bindings Everything related to the cuda.bindings module test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(cuda.bindings): remove tests for CUDA 13.1+ APIs from cuda_bindings_12

1 participant