Skip to content

Enable PyTorch release/2.13 in release and CI build matrices#6746

Merged
ethanwee1 merged 4 commits into
mainfrom
users/ethanwee/enable-pytorch-2.13
Jul 23, 2026
Merged

Enable PyTorch release/2.13 in release and CI build matrices#6746
ethanwee1 merged 4 commits into
mainfrom
users/ethanwee/enable-pytorch-2.13

Conversation

@ethanwee1

@ethanwee1 ethanwee1 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Closes #6792

What

Enable PyTorch release/2.13 across TheRock's release and CI build matrices, matching how release/2.102.12 are wired:

  • Add release/2.13 to RELEASE_STABLE_PYTORCH_REFS (linux + windows) and CI_PYTORCH_REFS (linux) in configure_pytorch_release_matrix.py.
  • Add release/2.13 to DEFAULT_PYTORCH_GIT_REFS in generate_pytorch_source_manifest.py.
  • Mark gfx125X-dcgpu unsupported for release/2.13 (not yet upstreamed to pytorch/pytorch; see [issue] gfx1250 pytorch build temporary env vars #5833).
  • Document 2.13 in external-builds/pytorch/README.md (downstream ROCm/pytorch release/2.13).
  • Unit tests added in configure_pytorch_release_matrix_test.py / configure_multi_arch_ci_test.py.

@therock-pr-bot

therock-pr-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
🌿 Branch Name ✅ Pass
📝 PR Title/Description ✅ Pass
Forbidden Files ✅ Pass
🧪 Unit Test ✅ Pass
🔎 pre-commit ✅ Pass
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled
🤖 therock-pr-bot ✅ Pass

🎉 All checks passed! This PR is ready for review.

📖 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

🎉 All checks passed! This PR is ready for review.

Resolve UNSUPPORTED_AMDGPU_FAMILIES conflict: keep main's gfx90c
exclusions and re-enabled gfx1250 for release/2.12 & nightly (#6735);
add release/2.13 excluding gfx125X-dcgpu (no 2.13 gfx1250 support yet) and gfx90c.
@therock-pr-bot therock-pr-bot Bot removed the Not ready to Review PR has unresolved policy failures — reviews blocked label Jul 23, 2026
@ethanwee1
ethanwee1 marked this pull request as ready for review July 23, 2026 14:42
Comment on lines +113 to +132
def test_release_2_13_filters_gfx125x(self):
matrix = m.generate_pytorch_matrix_for_release_type(
release_type="dev",
python_versions=["3.12"],
pytorch_git_refs=["release/2.13"],
amdgpu_families="gfx94X-dcgpu;gfx125X-dcgpu",
platform="linux",
)

# gfx125X-dcgpu not yet enabled on the release/2.13 ref, should filter.
self.assertEqual(
matrix,
[
{
"python_version": "3.12",
"pytorch_git_ref": "release/2.13",
"amdgpu_families": "gfx94X-dcgpu",
}
],
)

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.

This test case looks very similar to test_filters_exact_unsupported_family just above. Could merge the two.

(developers and agents should resist the tempation to just endlessly append new unit tests whenever changing code, the existing tests should be made robust enough to cover future behavior changes too)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good call — merged it into test_filters_exact_unsupported_family, which now uses subTest to cover every ref that excludes gfx125X-dcgpu (release/2.10 and release/2.13). Dropped the near-duplicate test_release_2_13_filters_gfx125x. Done in 38c1958.

Address review feedback: test_release_2_13_filters_gfx125x duplicated
test_filters_exact_unsupported_family. Merge them into a single
subTest-parametrized test that covers every ref currently excluding
gfx125X-dcgpu (release/2.10 and release/2.13), so future refs are
exercised by the existing test instead of a new near-duplicate.
Comment on lines +101 to +103
# out while supported families (gfx94X-dcgpu) are kept. Covers every
# ref that currently excludes gfx125X-dcgpu so new refs are exercised
# here rather than in a separate near-duplicate test.

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 comment here is likely to go stale (another thing to watch for with coding agents - they like to inject details from discussion into code comments)

@ethanwee1
ethanwee1 merged commit 013e3cb into main Jul 23, 2026
18 checks passed
@ethanwee1
ethanwee1 deleted the users/ethanwee/enable-pytorch-2.13 branch July 23, 2026 16:31
@github-project-automation github-project-automation Bot moved this from TODO to Done in TheRock Triage Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Enable PyTorch release/2.13 in release and CI build matrices

2 participants