Repository navigation
[release/2.13] Stabilize ROCm 7.14 testing on release/2.13 - #3525
Merged
Merged
Conversation
Ports all skips from pytorch_2.14.py (TheRock) to upstream-style in-code decorators on ROCm/pytorch release/2.13. Infrastructure (mirrors PR pytorch#190399): - common_utils.py: add skipIfRocmVersionAtLeast() - common_distributed.py: add skip_if_rocm_ver_atleast_multiprocess() New skips not in PR pytorch#190399: - test/dynamo/test_logging.py: test_logs_out (spurious ROCm W-lines) - test/test_serialization.py: test_debug_set_in_ci (TORCH_SERIALIZATION_DEBUG not set by TheRock runner) - test/test_multiprocessing.py: test_fs, test_fs_is_shared, test_fs_pool, test_fs_preserve_sharing, test_fs_sharing (torch_shm_manager cannot resolve ROCm libs in spawned children on 7.14+)
Port the remaining TheRock ROCm 7.14+ skips identified by full-suite run 30308582520. The upstream source fixes from PRs pytorch#185656, pytorch#188509, pytorch#188580, and pytorch#188673 are intentionally excluded because they are tracked by separate backport PRs. Derived from 666f2bc with those source-fix patches removed. Co-authored-by: Cursor <[email protected]>
The updated release/2.13 base already skips test_hip_device_count on ROCm for AIPROFSDK-840. Remove the narrower ROCm 7.14+ decorator replayed from the older stabilization branch. Co-authored-by: Cursor <[email protected]>
Keep coverage enabled elsewhere while avoiding a runtime defect fixed in ROCm 7.15. Co-authored-by: Cursor <[email protected]>
The ROCm 7.14 wheel advertises rocSHMEM support without packaged device libraries, while monitored-barrier timeout propagation is unreliable. Gate both paths at ROCm 7.14 and newer and use the common version decorator for the symmetric-memory skips. Test Plan: ``` lintrunner -a -m e682ebf lintrunner -m e682ebf ``` Authored with AI assistance. Co-authored-by: Cursor <[email protected]>
The ROCm 7.14 full-suite run consistently fails the padding-cache assertion and the non-1x1 Triton convolution comparison. Gate both tests with the existing ROCm version helper so the release validation can complete while their dependency ownership is investigated separately. Test Plan: ``` lintrunner -a -m e682ebf lintrunner -m e682ebf ``` Authored with AI assistance. Co-authored-by: Cursor <[email protected]>
2 tasks done
pragupta
pushed a commit
that referenced
this pull request
Aug 19, 2026
- [#3525](#3525) (`[release/2.13] Stabilize ROCm 7.14 testing on release/2.13`) added a module-level `sys.exit(0)` in `test/distributed/test_shmem_triton.py` for `ROCM_VERSION >= (7, 14)`. - This PR does two things: 1. **Unskip** that 7.14 `sys.exit(0)`. Keep the existing capability skip when the SHMEM backend is unavailable. 2. **Take the finder hunk** from upstream commit [`4a31e29`](pytorch@4a31e29) (`[ROCm][CI] Fix trunk rocSHMEM and CK failures`, from [pytorch#188429](pytorch#188429)): search `$ROCM_PATH/lib` when `ROCM_PATH` is set, else `/opt/rocm/lib`. - We did **not** take the rest of `4a31e29`. That commit also adds `@skipIfRocmVersionAtLeast([7, 14])` on `test/inductor/test_ck_backend.py`. That CK skip is already on `release/2.13` and is unrelated to this UT. Full `cherry-pick -x` of `4a31e29` would just restage it. We also did not backport the rest of pytorch#188429 (TheRock CI/docker switch). ## Test plan - [x] TheRock `test_pytorch_wheels_full.yml`, `test_configs=distributed`, `tests_to_include=distributed/test_shmem_triton` - gfx94X / `linux-gfx942-1gpu-ccs-csp-ossci-rocm`: https://github.com/ROCm/TheRock/actions/runs/32195967020/job/95904033020 ``` distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_barrier PASSED [13.5964s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_fence PASSED [2.5392s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_get_nbi_False PASSED [1.3613s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_get_nbi_True PASSED [1.4139s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_get_ring PASSED [1.7522s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_put PASSED [1.6263s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_put_signal_add PASSED [1.5214s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_put_signal_set PASSED [1.5903s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_quiet PASSED [1.5085s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_signal_wait_until PASSED [0.0122s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_sync PASSED [1.5976s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_wait_until PASSED [1.2603s] ======================= 12 passed, 25 skipped in 32.21s ======================== ``` - gfx950: https://github.com/ROCm/TheRock/actions/runs/32201312766/job/95915621757 ``` distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_barrier PASSED [8.2912s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_fence PASSED [1.2513s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_get_nbi_False PASSED [1.0780s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_get_nbi_True PASSED [1.0367s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_get_ring PASSED [1.1043s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_put PASSED [0.9847s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_put_signal_add PASSED [1.1261s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_put_signal_set PASSED [1.1993s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_quiet PASSED [1.1537s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_signal_wait_until PASSED [0.0080s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_sync PASSED [1.2694s] distributed/test_shmem_triton.py::SHMEMTritonTest::test_triton_wait_until PASSED [1.0119s] ======================= 12 passed, 25 skipped in 22.50s ======================== ``` - [x] Confirm the 12 Triton cases actually run (not a finder crash, not a module-level skip). Multiprocess alltoall/broadcast/reduces stay `@skip_if_rocm_multiprocess`.
This was referenced Aug 21, 2026
jithunnair-amd
pushed a commit
that referenced
this pull request
Aug 25, 2026
…l) (#3594) ## Summary Carry-forward of ROCm-specific commits from `release/2.13` onto `release/2.14` ? the 2.14 analog of the 2.13 "IFU dedup" ([PR #3503](#3503)). Analyzes the full IFU delta from [PR #3591](#3591) at `release/2.13`'s tip (`6596a0d`): **81 commits** in `release/2.13` not in `release/2.14`, each either dropped (already in 2.14, or 2.13-only) or cherry-picked here. ## Method Same rules as the [release/2.13 cherry-pick process](https://amd.atlassian.net/wiki/spaces/MLSE/pages/1819593560): - **Drop ? already in 2.14**: patch-id equivalence (`git cherry`), upstream PR already present, or content already relocated/absorbed into 2.14 (verified during cherry-pick). - **Drop ? 2.13-only**: version bump, `related_commits`, dependency/requirements pins, release-line CD/build changes. - **Carry-forward**: ROCm-specific fixes not present in 2.14 in any form. ## Commits carried forward (13) | Source | Notes | |--------|-------| | Fix reentrant deadlock in `torch.cuda._lazy_call` (#3496) | clean | | Skip ROCm-failing tests in test_cuda/test_nn (#3504) | **conflict resolved** ? kept 2.14's `test_graph_capture_error...` cleanup + took `@skipIfRocm`; kept 2.14's `test_allocator_backend` (already fixes LD_LIBRARY_PATH via `subprocess_env()`) | | skip test_hip_device_count (rocprofiler-sdk) | clean | | skip flaky test_Embedding_discontiguous_cuda | clean | | Skip profiler check for foreach tests on ROCm (#3262) | clean | | Skip test_is_pinned_no_context on python 3.14+ | clean | | Skip flaky test_reentrant_parent_error_on_cpu | clean | | Filter out CK gemms for gfx1250-only arch (#3545) | clean | | Fix hipify skipping sources under Windows subst drives (ROCM-29365) (#3561) | clean | | Fixed gfx1250_preferred_backend test (#3546) | clean | | [ROCm] Optimize AMD normalization backward kernel (pytorch#189405) | clean | | [release/2.13] Build rocSHMEM for the requested gfx target (#3582) | clean | | fix PicklingError handling for Python 3.14 | clean | ## Removed from this PR (per team) - [RELEASE_ONLY] skip test_autoheuristic in-code (pytorch#180927) ? not needed on 2.14. Upstream [pytorch#180927](pytorch#180927) is `RELEASE_ONLY`, merged to upstream `release/2.12` only (never on `main` or upstream `release/2.14`). ## Reviewed and excluded (team decision: not needed for 2.14) | Commit | Reason | |--------|--------| | Update composable_kernel submodule with gfx1033 support (#3499) | 2.14's CK pin already includes gfx1033; carrying would move the submodule pointer **backward**. | | Revert "Skip cudagraphs for kernel-free inductor graphs" (pytorch#187347) | 2.14 already has the fixed upstream **re-land** on top of the revert; carrying = regressing 2.14. | | Revert "[Reland] Port index_add fast path" (pytorch#188196) | 2.14 already has the newer **re-land (pytorch#189506)** on top of the revert; carrying = regressing 2.14. | ## Dropped as already in 2.14 (verified during cherry-pick) - rocm-smi deprecation (#3434) ? 2.14 already has zero `rocm_smi` refs. - Enable linalg via hipSOLVER, remove Magma (#3455) ? all 6 upstream PRs already in 2.14. - Stabilize ROCm 7.14 testing (#3525) ? 2.14 already carries the guards + skip messages. - Add gfx1250 support in GroupedBlas (#3532) ? already in 2.14 via upstream pytorch#190703 (`ScaledBlasDeviceUtils`). - Fix uninitialized embedding indices `test_embedding_meta_indices` (pytorch#188002) ? upstream already in 2.14. - Unskip ROCSHMEM triton UTs on rocm 7.14 (#3578) ? targets a 2.13-only 7.14 module skip that 2.14 never had; tests already run on 2.14. Remaining commits drop as 2.13-only (version/pins/related_commits/CD) or as already-in-2.14 by patch-id/upstream. ## Test plan - [x] TheRock full-stack dev build (torch + torchaudio + torchvision + triton) on gfx94X-dcgpu for Python 3.10-3.14, all **Build** jobs green (ROCm `10.1.0a20260822`, on the `aws-linux-scale-rocm-prod` pool), after bringing the branch up to its base so `related_commits` resolves torchaudio/torchvision: - py3.10 https://github.com/ROCm/TheRock/actions/runs/32863299013 - py3.11 https://github.com/ROCm/TheRock/actions/runs/32863305363 - py3.12 https://github.com/ROCm/TheRock/actions/runs/32863311391 - py3.13 https://github.com/ROCm/TheRock/actions/runs/32863318109 - py3.14 https://github.com/ROCm/TheRock/actions/runs/32863325370 - [x] TheRock CI wheel build on gfx94X-dcgpu for Python 3.10-3.14 all green (ROCm `10.1.0a20260822`, torch-only, on the `aws-linux-scale-rocm-prod` pool, ~1h40m each): - py3.10 https://github.com/ROCm/TheRock/actions/runs/32818564344 - py3.11 https://github.com/ROCm/TheRock/actions/runs/32818568751 - py3.12 https://github.com/ROCm/TheRock/actions/runs/32818572249 - py3.13 https://github.com/ROCm/TheRock/actions/runs/32818576288 - py3.14 https://github.com/ROCm/TheRock/actions/runs/32818580229 ## Processed Commits List Spreasheet with each commit evaluated for cherry-pick & resolution (drop/include) with reasoning: [pr3594-commit-outcomes.xlsx](https://github.com/user-attachments/files/31390971/pr3594-commit-outcomes.xlsx) --------- Signed-off-by: pablo-garay <[email protected]> Co-authored-by: Iurii Paikov <[email protected]> Co-authored-by: Chinmay Dattanand Kuchinad <[email protected]> Co-authored-by: rocm-repo-management-api-6[bot] <212817015+rocm-repo-management-api-6[bot]@users.noreply.github.com> Co-authored-by: Dmitry Nikolaev <[email protected]> Co-authored-by: srinivamd <[email protected]> Co-authored-by: Subramanian <[email protected]> Co-authored-by: zjliu-amd <[email protected]> Co-authored-by: Andres Lugo <[email protected]> Co-authored-by: pablo-garay <[email protected]> Co-authored-by: Bo Li <[email protected]> Co-authored-by: Anatoliy Litvinenko <[email protected]> Co-authored-by: Jeff Daily <[email protected]> Co-authored-by: Luca Bruni <[email protected]> Co-authored-by: albmalamd <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Align release/2.13 with the ROCm 7.14 compatibility handling required by TheRock CI. This change adds reusable ROCm version guards for standard and multiprocess tests and handles known ROCm 7.14 runtime and packaging incompatibilities found during full-suite validation.
Test plan
All validation completed successfully.