Skip to content

test(cuda.core): im2col-wide tensor map tests skip on every Blackwell runner with CUDA_ERROR_INVALID_VALUE #3587

Todo

Description

@mdboom

Part of #2077.

Problem

The 4 tests in cuda_core/tests/test_tensor_map.py::TestTensorMapIm2colWide never run in CI:

  • test_from_im2col_wide_3d
  • test_from_im2col_wide_4d
  • test_from_im2col_wide_5d
  • test_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 cuTensorMapEncodeIm2colWide requirements: element type, channelsPerPixel × element size versus the swizzle mode, interleave and swizzle defaults, pixelsPerColumn limits. 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.

  1. 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>).

  2. 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.

  3. 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

  1. added
    test
    cuda.core
    on Nov 25, 2026
  2. self-assigned this
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cuda.coretest

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions