Skip to content

[ROCm][CI] Update ROCm version to 10.1 & Python 3.11 in build workflow - #5032

Merged
vkuzo merged 2 commits into
mainfrom
av_update_rocm10.1
Nov 18, 2026
Merged

vkuzo merged 2 commits into
mainfrom
av_update_rocm10.1

Conversation

@akashveramd

@akashveramd akashveramd commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The PR is currently blocked by the PRs, #5036 and #4941.

Made with Cursor

@pytorch-bot

pytorch-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit c7219b8 with merge base 45ac9a3 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 28, 2026
@vkuzo

vkuzo commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

@claude review

@claude

claude Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Claude finished @vkuzo's task in 56s —— View job


PR Review: [ROCm][CI] Update ROCm version to 10.1

  • Read diff
  • Check CI failure
  • Post review

Diff: The changes look good. In both regression_test_rocm.yml and regression_test_pt2e_gpu.yml (both test and test-rocm jobs), all three ROCm version strings move from 10.0 to 10.1 together: torch-spec index URL, gpu-arch-version, and docker-image. No other workflow pins rocm10.0, so nothing is left behind.

Python 3.10 → 3.11 bump (commit f09b01f): This is a reasonable change, but the PR description doesn't mention it. Please add one line explaining why, e.g. whether the rocm10.1 nightly wheels are no longer published for cp310. That way someone reading the history later knows the 3.11 pin is required, not optional.

CI failure: Run Regression Tests on ROCm / test-nightly

Results: 4 failed, 1867 passed. Setup worked: the docker image, wheel index and Python 3.11 env all installed fine. The 4 failures are Triton compile errors, and all have the same cause:

triton.compiler.errors.CompilationError: too many indices for tensor of rank 0
Test Kernel location
test/prototype/blockwise_fp8_training/test_blockwise_kernels.py::test_triton_quantize_fp8_weight_quant_transposed_rhs[128,256] torchao/prototype/blockwise_fp8_training/kernels.py:915-916 (scale_k[:, None], scale_m[None, :])
test/prototype/moe_training/test_kernels.py::test_fp8_rowwise_3d_transpose_rhs_atomic[True,False] torchao/prototype/moe_training/kernels/float8_rowwise.py:196 and :256 (expert_idx[:, None])

In these kernels, scale_k/scale_m (= pid_n/pid_m) and expert_idx are scalars from tl.program_id, and the code indexes them with [:, None]. The nightly installed triton-rocm==3.9.0+gitb7ddcf86, and this Triton version rejects that indexing. Older versions accepted it. So the failures most likely come from the Triton that ships with the new nightly wheel, not from anything ROCm 10.1 specific in this PR. The same kernels will probably break on CUDA once the CUDA nightlies pick up this Triton.

Suggested fix (separate PR or on top of this one): remove the [:, None] / [None, :] on the scalar terms, since broadcasting a scalar against the block offsets already gives the right shape. For example:

scale_offs = scale_k * s_stride_dim_0 + scale_m * s_stride_dim_1

If the store or mask must be 2D, broadcast against a real block, e.g. expert_idx * stride_scales_dim0 + k_offs[None, :] * stride_scales_dim1.

Fix this →

Verdict

The workflow change itself is fine. Before merging, decide how to handle the 4 kernel failures: fix the kernels, or land this with the failures tracked in a follow-up issue. The failures are real bugs exposed by the newer Triton, not CI flakiness.

@vkuzo

vkuzo commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

could you look into the CI failures, are they real?

@vkuzo

vkuzo commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

just as a heads up, i'm going to do the python 3.10 -> 3.11 upgrade in this PR: #5033

@akashveramd

akashveramd commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator Author

could you look into the CI failures, are they real?

@vkuzo: @jagadish-amd is currently looking into the CI failure.

@jagadish-amd

Copy link
Copy Markdown
Contributor

The failures are fixed in this PR #5036
cc @vkuzo

@akashveramd akashveramd changed the title [ROCm][CI] Update ROCm version to 10.1 [ROCm][CI] Update ROCm version to 10.1 & Python 3.11 in build workflow Nov 4, 2026
akashveramd and others added 2 commits November 18, 2026 16:03
rocm10.1 nightly torch has no cp310 wheels, so the py3.10 ROCm wheel
job fails at Install torch dependency. Align with 3.11+.

Co-authored-by: Cursor <[email protected]>
@vkuzo

vkuzo commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@claude review

@claude

claude Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Claude finished @vkuzo's task in 52s —— View job


PR Review: [ROCm][CI] Update ROCm version to 10.1 & Python 3.11 in build workflow

  • Read diff (git diff origin/main...HEAD)
  • Check that no rocm10.0 references are left over
  • Check what the Python bump does to the published wheels
  • Post review

Verdict: LGTM. I found no blocking issues. There are a few small points below.

regression_test_rocm.yml

The three ROCm strings move to 10.1 together: the torch-spec index URL, gpu-arch-version, and docker-image. No other workflow still pins rocm10.0. regression_test_pt2e_gpu.yml does not appear in this diff, and its ROCm leg has been removed on main (see the comment at regression_test_rocm.yml:62-64), so nothing there needs updating. The conda create ... python=3.11 line is already on main.

build_wheels_linux_x86.yml

The users who matter most are still covered. The bump from ["3.10"] to ["3.11"] does not drop Python 3.10 support from the published wheels:

  • setup.py:788 hardcodes the wheel tag to cp310-abi3 (bdist_wheel.py_limited_api = "cp310").
  • setup.py:21 and :486 compile the extensions with -DPy_LIMITED_API=0x030A0000.

A wheel built on a 3.11 interpreter therefore keeps the same cp310-abi3 tag and ABI, and still installs on 3.10.

Points to consider (non-blocking):

  1. The change affects every backend, not just ROCm. python-versions feeds the matrix for CPU, CUDA, XPU and ROCm. All x86 nightly wheels will now be built and smoke-tested on 3.11, and nothing in x86 CI will exercise 3.10 anymore. That seems acceptable given the abi3 setup, but the new comment on line 37 reads as if only ROCm is affected. Suggested wording: # Build on 3.11 (abi3 wheel tagged cp310, still installs on 3.10); ROCm 10.1+ nightlies are not published for cp310.
  2. Behaviour across architectures now differs. build_wheels_linux_aarch64.yml:38 still builds ["3.10", "3.12"]. That's fine for now, but you may want to align it in the follow-up that bumps Python everywhere.
  3. Possible overlap with switch CI to pytorch 2.15 #5033. @vkuzo said they would do the 3.10 → 3.11 bump in switch CI to pytorch 2.15 #5033. If switch CI to pytorch 2.15 #5033 lands first and touches this line, this hunk will either conflict or become redundant. Rebase after it lands.
  4. The ROCm version comes from test-infra. Which ROCm version the build matrix uses is set by generate_binary_build_matrix.yml@main in test-infra, not by this repo. So the build-side fix only takes effect if test-infra already lists rocm10.1. That matches the cp311-only error in the linked run, but it's worth confirming the next nightly build after merge goes green.

Merge readiness

@vkuzo
vkuzo merged commit a791dcb into main Nov 18, 2026
40 of 41 checks passed
@akashveramd
akashveramd deleted the av_update_rocm10.1 branch November 19, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rocm CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: rocm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants