Skip to content

build(pytorch): enable gfx1250 wheels for release/2.12 and nightly#6735

Merged
ethanwee1 merged 5 commits into
mainfrom
users/ethanwee/enable-pytorch-2.12-gfx1250
Jul 22, 2026
Merged

build(pytorch): enable gfx1250 wheels for release/2.12 and nightly#6735
ethanwee1 merged 5 commits into
mainfrom
users/ethanwee/enable-pytorch-2.12-gfx1250

Conversation

@ethanwee1

@ethanwee1 ethanwee1 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

JIRA ID : AIPYTORCH-804

Summary

Enable gfx125X-dcgpu (gfx1250) in TheRock's PyTorch release matrix for release/2.12 and nightly, matching the existing release/2.11 behavior.

Previously, configure_pytorch_release_matrix.py filtered gfx1250 out of those refs even though PyTorch now supports the arch:

Changes

  • Remove gfx125X-dcgpu from the unsupported-family filter for release/2.12 and nightly in configure_pytorch_release_matrix.py.

Validation

Both the single-arch and multi-arch gfx1250 PyTorch wheel builds are green with this matrix change (Python 3.12, ROCm 7.15.0a20260712, index rocm.nightlies.amd.com/whl-multi-arch, test_amdgpu_families=none):

Scenario amdgpu_families Run Result
Single-arch (gfx1250 only) gfx125X-dcgpu https://github.com/ROCm/TheRock/actions/runs/29936052631 ✅ success
Multi-arch (gfx942 + gfx1250) gfx94X-dcgpu;gfx125X-dcgpu https://github.com/ROCm/TheRock/actions/runs/29938470834 ✅ success

Notes:

PyTorch release/2.12 now includes gfx1250 support via ROCm/pytorch#3421, so stop filtering gfx125X-dcgpu out of the release matrix alongside release/2.11.
@therock-pr-bot

therock-pr-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

❌ PR Check — Action Required

Check Status Details
🌿 Branch Name ✅ Pass
📝 PR Title/Description ✅ Pass
Forbidden Files ✅ Pass
🧪 Unit Test ❌ Fail Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: build_tools/github_actions/configure_pytorch_release_matrix.py; no test file found
🔎 pre-commit ✅ Pass
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled

⚠️ 1 policy check(s) failed. Please address the issues above before this PR can be Reviewed.

🚫 Please fix the failed policies

  • ❌ Unit Test

The Not ready to Review label was added to this PR. Once all policies pass, the label is removed automatically.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

@therock-pr-bot therock-pr-bot Bot added the Not ready to Review PR has unresolved policy failures — reviews blocked label Jul 21, 2026
@therock-pr-bot

therock-pr-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ Unit Test

The Not ready to Review label has been added to this PR.
Once all policies pass, the label will be removed automatically.

Stop filtering gfx125X-dcgpu out of the PyTorch release matrix for release/2.12 and nightly now that ROCm/pytorch#3421 and upstream pytorch#188597 landed gfx1250 support.
Also restore configure_pytorch_release_matrix.py from main to drop accidental release/2.9 refactor from the first commit.
@ethanwee1 ethanwee1 changed the title build(pytorch): enable gfx1250 wheels for release/2.12 build(pytorch): enable gfx1250 wheels for release/2.12 and nightly Jul 21, 2026
@ethanwee1 ethanwee1 removed the Not ready to Review PR has unresolved policy failures — reviews blocked label Jul 21, 2026

@jithunnair-amd jithunnair-amd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the unit tests are needed; will leave that to theRock team's judgement

Add pytorch_gitrepo_origin workflow input so gfx1250 release/2.12 test
builds can checkout a fork branch with the ck_gemm CMake guard before it
lands on ROCm/pytorch release/2.12.
@ethanwee1
ethanwee1 marked this pull request as ready for review July 22, 2026 17:00

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer if this PR was limited to only the changes to build_tools/github_actions/configure_pytorch_release_matrix.py.

  • One PR updating .github/workflows/multi_arch_build_portable_linux_pytorch_wheels.yml and .github/workflows/multi_arch_build_windows_pytorch_wheels.yml
  • No PR for the extra test (it's not a useful test case when existing test cases already exercise the logic there)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to this file could be moved to a separate PR. I'd also prefer to keep the Linux and Windows workflows in sync and not add inputs to only one or the other: https://github.com/ROCm/TheRock/blob/main/.github/workflows/multi_arch_build_windows_pytorch_wheels.yml

Comment on lines 94 to 106
def test_filters_exact_unsupported_family(self):
matrix = m.generate_pytorch_matrix_for_release_type(
release_type="dev",
python_versions=["3.12"],
pytorch_git_refs=["release/2.10"],
amdgpu_families="gfx94X-dcgpu;gfx125X-dcgpu",
platform="linux",
)

# gfx125X-dcgpu not supported on the release/2.10 ref, should filter
self.assertEqual(matrix[0]["amdgpu_families"], "gfx94X-dcgpu")
matrix_families = ";".join(row["amdgpu_families"] for row in matrix)
self.assertNotIn("gfx125X", matrix_families)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the existing tests were sufficient here. We don't need 40 lines of test code for a 2 line change just checking that config file has some values.

Per review feedback, scope this PR down to only the gfx1250 matrix
enablement in configure_pytorch_release_matrix.py:

- Revert the pytorch_gitrepo_origin input added to
  multi_arch_build_portable_linux_pytorch_wheels.yml (moving to a
  separate PR that keeps the Linux and Windows workflows in sync).
- Drop the added configure_pytorch_release_matrix_test.py cases; the
  existing tests already exercise the unsupported-family filtering.
@therock-pr-bot therock-pr-bot Bot added the Not ready to Review PR has unresolved policy failures — reviews blocked label Jul 22, 2026
@ethanwee1

Copy link
Copy Markdown
Contributor Author

@ScottTodd addressed, thanks for the review:

  • Scoped this PR down to only configure_pytorch_release_matrix.py.
  • Reverted the added configure_pytorch_release_matrix_test.py cases (existing tests already cover the filtering).
  • Moved the pytorch_gitrepo_origin workflow input to a separate PR (ci(pytorch): add optional PyTorch git origin override to wheel builds #6782), applied to both the Linux and Windows workflows to keep them in sync.

Resolve conflict in configure_pytorch_release_matrix.py: keep gfx90c
filtering from main while removing gfx125X-dcgpu from release/2.12 and
nightly to enable gfx1250 wheels.
@ethanwee1
ethanwee1 merged commit 0f2827e into main Jul 22, 2026
29 of 30 checks passed
@ethanwee1
ethanwee1 deleted the users/ethanwee/enable-pytorch-2.12-gfx1250 branch July 22, 2026 19:45
@github-project-automation github-project-automation Bot moved this from TODO to Done in TheRock Triage Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Not ready to Review PR has unresolved policy failures — reviews blocked

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants