Repository navigation
test(cuda.core): use valid im2col-wide parameters so the tests run on Blackwell - #3660
Conversation
… Blackwell The TestTensorMapIm2colWide tests and their probe asked for 64 FLOAT32 channels per pixel (256 bytes). With no interleave, cuTensorMapEncodeIm2colWide requires channelsPerPixel * element size to fit the swizzle span, 128 bytes for the default SWIZZLE_128B, so encoding failed with CUDA_ERROR_INVALID_VALUE on every GPU and the fixture skipped it as "unsupported on this driver/GPU combination". Use 32 channels (128 bytes). Replace the probe with a direct CUDA 13 build check, so INVALID_VALUE on capable hardware fails the test. Remove the "not currently run in any CI job" comments. Closes NVIDIA#3587. 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:
|
|
jpascucci-nv
left a comment
There was a problem hiding this comment.
Sol 6.1 high finds no actionable findings, and it lgtm.
Closes #3587. Part of #2077.
Summary
The four
TestTensorMapIm2colWidetests skipped on every Blackwell runner with "Im2col-wide unsupported on this driver/GPU combination". The cause is the tests' parameters, not the hardware or driver.The probe and all four tests asked for
channels_per_pixel=64with FLOAT32 elements, which is 256 bytes per pixel. Withinterleave=NONE,cuda.hrequireschannelsPerPixel× element size to be at most the swizzle span: 128 bytes forSWIZZLE_128B, cuda.core's default. So encoding failed withCUDA_ERROR_INVALID_VALUEon every GPU, and the fixture turned that into a skip.CUDA_ERROR_INVALID_VALUEon capable hardware now fails the test. The "not currently run in any CI job" comments are removed.Evidence
Direct encode checks on an RTX 5070 (sm_120, same family as the RTX PRO 6000 runners):
channels_per_pixel(bytes)CUDA_ERROR_INVALID_VALUE(old parameters)CUDA_ERROR_INVALID_VALUE(over the 64-byte span, as documented)So sm_12x supports im2col-wide. An RTX A400 (sm_86) returns
CUDA_ERROR_NOT_SUPPORTEDand is skipped by the existing compute-capability check.CI coverage: on
main, the tests skip in all 65 configurations: 60 pre-Blackwell (compute capability), 1 CUDA 12 build, and 5 Blackwell rows with the probe'sINVALID_VALUE. After this change they should pass on those 5 Blackwell rows:latestdriver) and CTK 13.5.0 (driver 610.43.02);Locally: the four tests pass on the RTX 5070 and skip on the A400;
test_tensor_map.pypasses (81 passed, 3 skipped).Confirming in CI: in this PR's CI run, the RTX PRO 6000 cuda.core jobs should report the four tests PASSED. For example:
The GB300 row is nightly-only (needs write access to NVIDIA/cuda-python): after this PR's CI run succeeds, run
gh workflow run ci-nightly.yml --repo NVIDIA/cuda-python --ref pull-request/<PR number> -f run-id=<run-id>and check the "Nightly standard (linux-aarch64)" GB300 job.Merge Danger
Door: two-way. Test-only change.
Blast Radius: four tests in
cuda_core/tests/test_tensor_map.py, now running on Blackwell rows where they used to skip.Reviewers: please feel free to push commits directly to this PR to improve it.
🤖 Generated with Claude Code