Skip to content

[CUDA] Skip grouped_mm u64 indexing on SM100 CUDA 13.0 - #196775

Closed
slayton58 wants to merge 1 commit into
gh/slayton58/175/basefrom
gh/slayton58/175/head
Closed

slayton58 wants to merge 1 commit into
gh/slayton58/175/basefrom
gh/slayton58/175/head

Conversation

@slayton58

@slayton58 slayton58 commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Human Notes:

Unable to repro on OSDC node w/615.71.09 driver, even with downloaded build artefact
from PR with currently failing CI test...

Codex:

The CUDA 13.0 B200 smoke lane on driver 580.173.02 consistently faults with an illegal memory access in the grouped_mm u64 indexing test. The same CI wheel and cuBLAS 13.1.1.3 pass on driver 615.71.09, isolating this to the older CUDA driver stack.

Skip only the CUDA variant on SM100 when PyTorch is built with CUDA 13.0. MPS and other CUDA toolkit versions continue to exercise the test.

Test Plan:

python test/test_linalg.py TestGroupedMMCUDA.test_grouped_mm_u64_indexing_cuda_float16

Authored with assistance from OpenAI Codex.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/196775

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 3 Pending

As of commit b20044f with merge base 8671f09 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Sep 11, 2026
@slayton58

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 11, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Sep 12, 2026
…h cuBLAS 13.1.1.3 used by CD (#196869)

## Summary

CI docker images for CUDA 13.0 (`.ci/docker/build.sh`, `install_cuda.sh`) are still pinned to CUDA
toolkit **13.0.2**, but the CD binary build matrix
([`generate_binary_build_matrix.py`](https://github.com/pytorch/pytorch/blob/d1ae7eed74b9ed5e31ac786b6434d2510169135b/.github/scripts/generate_binary_build_matrix.py#L34))
already builds cu130 wheels against **cuBLAS 13.1.1.3**, which ships with CUDA toolkit **13.0.3**, not
13.0.2. This CI/CD toolkit skew means CI tests run the CD-built wheel's cuBLAS 13.1.1.3 against an
older 13.0.2 driver/runtime stack than what it was built/validated for.

This is the root cause of the illegal-memory-access failures in
`TestGroupedMMCUDA.test_grouped_mm_u64_indexing_cuda_float16` on the periodic CUDA 13.0 B200 smoke lane
(e.g. https://github.com/pytorch/pytorch/actions/runs/34476417747/job/102891503623), which only started
showing up after [3c71ead](#196075) added coverage exercising this path, and which
#196775 worked around by skipping the test rather than fixing the underlying version mismatch.

- Bump `CUDA_VERSION` 13.0.2 -> 13.0.3 in `.ci/docker/build.sh`, `.ci/docker/common/install_cuda.sh`
  (installer bumped to `cuda_13.0.3_580.126.20_linux`, verified to exist at
  https://developer.download.nvidia.com/compute/cuda/13.0.3/local_installers/), and
  `.ci/docker/common/install_inductor_benchmark_deps.sh` (comment only).
- Same bump for the FA3 wheel build matrix in
  `.github/workflows/_binary-build-flash-attention-wheel-linux.yml` (x86_64 + aarch64 legs, including
  the aarch64 `cuda_installer_name`).
- `RELEASE.md` supported-architectures table version bump.
- Revert #196775 (`[CUDA] Skip grouped_mm u64 indexing on SM100 CUDA 13.0`) now that the underlying
  toolkit/cuBLAS mismatch causing the false failure is fixed.

## Test plan

- [ ] CI docker images rebuild successfully with CUDA 13.0.3.
- [ ] `TestGroupedMMCUDA.test_grouped_mm_u64_indexing_cuda_float16` passes on the periodic CUDA 13.0
      B200 smoke lane without the skip from #196775.
- [ ] FA3 wheel build workflow (`_binary-build-flash-attention-wheel-linux.yml`) succeeds for both
      x86_64 and aarch64 cu130 legs with the new installer.

Debugged by @nWEIdia _manually_ but 🤖 Generated with [Claude Code](https://claude.com/claude-code)
p.s. the timing is a bit awkward that we are sunsetting cuda 13.0 CI, so... I think it is a good fyi anyways.

Pull Request resolved: #196869
Approved by: https://github.com/Skylion007

Co-authored-by: Claude Sonnet 5 <[email protected]>
@github-actions
github-actions Bot deleted the gh/slayton58/175/head branch November 18, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/b200 ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants