Skip to content

test(cuda.core): fix the compute-capability check that skips options31 - #3595

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

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

Conversation

@mdboom

@mdboom mdboom commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Closes #3563. Part of #2077.

Summary

test_cpp_program_with_various_options[options31] (ProgramOptions(arch="sm_100", device_float128=True)) is meant to skip below compute capability 10.0. It compared Device().compute_capability, a (major, minor) tuple, with (100, 0), so it skipped on every GPU, including Blackwell.

 pytest.param(
     ProgramOptions(arch="sm_100", device_float128=True),
     marks=pytest.mark.skipif(
-        Device().compute_capability < (100, 0),
+        Device().compute_capability < (10, 0),
         reason="device_float128 requires sm_100 or later",
     ),
 ),

This PR also removes the case's "This test is not currently run in any CI job" marker. The change is in cuda_core only, with no counterpart in the bindings roots. A search found no other three-digit compute-capability comparisons in cuda_core or either bindings root.

Evidence

On a GeForce RTX 5070 (compute capability 12.0):

  • Before: test_cpp_program_with_various_options[options31] SKIPPED ("device_float128 requires sm_100 or later").
  • After: PASSED. All 38 cases of test_cpp_program_with_various_options pass.

The case only compiles to PTX, so the driver version doesn't matter. It now also runs on the CTK 12.9.1 RTX PRO 6000 row. Calling NVRTC 12.9, 13.0, and 13.5 directly, each accepts -arch=sm_100 --device-float128.

Confirming it runs in CI: in this PR's CI run, the RTX PRO 6000 jobs (CTK 13.5.0 on Linux and Windows, CTK 12.9.1 on Linux) should report test_cpp_program_with_various_options[options31] PASSED, where main reports it SKIPPED. For example:

gh run view <CI run id> --repo NVIDIA/cuda-python --log | grep -F "test_cpp_program_with_various_options[options31]"

The nightly GB300 row should run it too. The CTK 13.0.2 rows still skip it, as intended, because their NVRTC is older than the bindings.

Merge Danger

Door: two-way. One comparison in a test's skip condition.

Blast Radius: one test case. It now runs on CC 10.0+ runners and could fail there if NVRTC rejects the options, which the local checks above rule out for the NVRTC versions in CI.

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

🤖 Generated with Claude Code

test_cpp_program_with_various_options[options31] compiles with
device_float128 for sm_100 and is meant to skip below compute capability
10.0. It compared Device().compute_capability, a (major, minor) tuple,
with (100, 0), so it skipped on every GPU, including Blackwell. Compare
with (10, 0), and remove its "not currently run in any CI job" marker.

Closes NVIDIA#3563

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mdboom mdboom added this to the cuda.core 1.4.0 milestone Nov 25, 2026
@mdboom mdboom added test Improvements or additions to tests cuda.core Everything related to the cuda.core module labels Nov 25, 2026
@mdboom mdboom self-assigned this Nov 25, 2026
@mdboom
mdboom requested a review from leofang November 25, 2026 18:09
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Adjusted GPU test compatibility criteria so the relevant test can run on a broader range of compute-capability levels.
    • Removed an outdated note about a test parameter case not running in CI.
    • No user-facing application behavior changed.

The device_float128 test now checks for compute capability (10, 0) instead of (100, 0). The comment stating that the options31 case did not run in CI was removed.

Changes: Test eligibility

Layer / File(s) Summary
Update test eligibility
cuda_core/tests/test_program.py
The device_float128 skip condition now uses (10, 0). The comment about options31 not running in CI was removed.

Assessment against linked issues

Objective Addressed Explanation
Correct the compute-capability threshold and remove the CI status comment [#3563] ✅
Confirm options31 passes on the specified CI configurations [#3563] ❓ The supplied change summary does not include CI results confirming the test ran and passed.

Suggested reviewers: leofang, jpascucci-nv, juenglin

Change: Other · Severity of issue fixed: Low

Merge Risk: Minimal · up to 01a31

This fixes a test skip threshold so the options31 case can run on supported GPUs. It has no production impact and is easy to revert. Confirm in CI that the case passes rather than skips on the target rows.

Security architecture risk: Minimal · up to 01a31

The change lets an existing compiler test run on eligible GPUs. It does not change the public API, production behavior, or deployment configuration.

- [ ] 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 c29b214 and 01a31bb.

Files selected for processing: 1

  • cuda_core/tests/test_program.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 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.core Everything related to the cuda.core module test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(cuda.core): options31 in test_cpp_program_with_various_options never runs because of a compute-capability typo

1 participant