Repository navigation
Conversation
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>
|
No actionable comments were generated in the recent review. Summary
Change: Other · Severity of issue fixed: Low Merge Risk:
|
|
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 comparedDevice().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_coreor either bindings root.Evidence
On a GeForce RTX 5070 (compute capability 12.0):
test_cpp_program_with_various_options[options31]SKIPPED ("device_float128 requires sm_100 or later").test_cpp_program_with_various_optionspass.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, wheremainreports it SKIPPED. For example: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