Repository navigation
Description
Part of #2077.
Problem
The 4 tests in cuda_core/tests/test_tensor_map.py::TestTensorMapIm2colWide never run in CI:
test_from_im2col_wide_3dtest_from_im2col_wide_4dtest_from_im2col_wide_5dtest_from_im2col_wide_rank_validation
Their skip_if_no_im2col_wide fixture skips pre-Blackwell GPUs by compute capability (< 10.0), which is correct. Then it runs a probe: TensorMapDescriptor._from_im2col_wide on a (1, 32, 64) FLOAT32 tensor, with channels_per_pixel=64 and pixels_per_column=4. If the probe raises CUDA_ERROR_INVALID_VALUE, the fixture skips with "Im2col-wide unsupported on this driver/GPU combination".
Every Blackwell runner in CI hits that skip:
| Runner | CTK | Driver |
|---|---|---|
| linux-64 RTX PRO 6000 (sm_120) | 13.0.2 | 595.99.02 (latest) |
| linux-64 RTX PRO 6000 (sm_120) | 13.5.0 | 610.43.02 |
| win-64 RTX PRO 6000 (sm_120) | 13.0.2, 13.5.0 | latest |
| linux-aarch64 GB300 (sm_103, nightly) | 13.5.0 | latest |
The only other Blackwell skip is a CUDA 12 build ("requires cuda.core built with CUDA 13+"), which is expected.
Investigation
- Probe parameters: check them against the
cuTensorMapEncodeIm2colWiderequirements: element type,channelsPerPixel× element size versus the swizzle mode, interleave and swizzle defaults,pixelsPerColumnlimits. An invalid probe would also explain why the real tests can't run. - Architecture: determine whether im2col-wide is supported on sm_12x at all (RTX PRO 6000), or only on sm_100/sm_103.
- Driver: recheck on a driver as new as the CTK under test (CI: no runner has a driver as new as the CTK under test (13.5) #3579).
Then make the fixture skip only for the known-unsupported cases (by architecture or driver version), and let INVALID_VALUE on supported hardware fail the test.
Done when
The four tests pass on GB300 (and on RTX PRO 6000 if sm_12x supports im2col-wide), and the fixture no longer treats CUDA_ERROR_INVALID_VALUE as "unsupported".
Guidance for PRs that address this issue
- When making a fix that allows a test to run in CI, remove the comment about the test not running in CI from the code.
- When making a test run only in nightly CI, we need to concretely confirm that in nightly CI. Include instructions in the PR about how to kick off a nightly run for the specific PR in order to test that (see below).
- For every PR note that the reviewer should feel free to push commits directly to the PR to improve things. @mdboom does not have the bandwidth to shepard each of them through.
- Every PR should include a way to confirm automatically that the tests are now running in at least one CI configuration.
Running the nightly test suites for a PR
The nightly workflow can test a PR's own wheels and tests, but it has to be started by hand. Starting it needs write access to NVIDIA/cuda-python, so ask a maintainer if you don't have it.
-
Wait for the PR's CI workflow run to finish successfully, and note its run ID, the number in its URL (
.../actions/runs/<run-id>). -
Start CI: Nightly optional-deps on the PR's mirror branch, with that run ID. Either:
-
In the GitHub UI: Actions → CI: Nightly optional-deps → Run workflow. Set Use workflow from to
pull-request/<PR number>, enter the run ID in the run-ID field, and leave the link-checker-only box unchecked. -
From the command line:
gh workflow run ci-nightly.yml --repo NVIDIA/cuda-python --ref pull-request/<PR number> -f run-id=<run-id>
Supply the run ID. Without it, the nightly run tests
main's latest wheels and tests, not the PR's. -
-
Link the nightly run in the PR. Then confirm that the affected tests ran and passed, rather than skipped, in the relevant nightly jobs.
The nightly run tests the commit of that CI run. Repeat these steps after pushing changes that affect the nightly-only tests.
Activity