Skip to content

[ROCm] Enable test_inverse_errors_large & test_lu_solve_batched_many_batches linalg tests - #186122

Closed
akashveramd wants to merge 6 commits into
pytorch:mainfrom
akashveramd:av_enable_linalg_inverse_errors_large_tests
Closed

akashveramd wants to merge 6 commits into
pytorch:mainfrom
akashveramd:av_enable_linalg_inverse_errors_large_tests

Conversation

@akashveramd

@akashveramd akashveramd commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl from https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/ and release wheels for 7.13 https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang

@pytorch-bot

pytorch-bot Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 6 Unclassified Failures

As of commit 8f7b10e with merge base 3201580 (image):

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

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

@pytorch-bot pytorch-bot Bot added module: rocm AMD GPU support for Pytorch topic: not user facing topic category labels Jun 3, 2026
@jithunnair-amd jithunnair-amd added ci-no-td Do not run TD on this PR ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 ciflow/trunk Trigger trunk jobs on your pull request keep-going Don't stop on first failure, keep running tests until the end open source labels Jun 3, 2026
@pytorch-bot

pytorch-bot Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@jithunnair-amd jithunnair-amd added ciflow/rocm-mi200 Trigger "default" config CI on ROCm MI200 ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 labels Jun 8, 2026
@akashveramd
akashveramd force-pushed the av_enable_linalg_inverse_errors_large_tests branch from 30ee6d4 to 132f7fd Compare June 9, 2026 23:30
@akashveramd akashveramd changed the title [ROCm] Enable inverse_errors_large linalg tests [ROCm] Enable test_inverse_errors_large & test_lu_solve_batched_many_batches linalg tests Jun 9, 2026
@akashveramd
akashveramd force-pushed the av_enable_linalg_inverse_errors_large_tests branch from 132f7fd to 2cb12e2 Compare June 10, 2026 21:17
Comment thread test/test_linalg.py Resolved
@akashveramd
akashveramd force-pushed the av_enable_linalg_inverse_errors_large_tests branch from 55e9d44 to be65441 Compare June 26, 2026 22:54
@jithunnair-amd
jithunnair-amd marked this pull request as ready for review June 27, 2026 02:04
jithunnair-amd
jithunnair-amd previously approved these changes Jun 27, 2026
@jithunnair-amd
jithunnair-amd requested a review from jeffdaily June 27, 2026 02:04
@jithunnair-amd

Copy link
Copy Markdown
Collaborator

@jeffdaily Please review

jeffdaily
jeffdaily previously approved these changes Jul 1, 2026
@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot merge

@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

@jeffdaily

Copy link
Copy Markdown
Collaborator

@pytorchbot merge -f "Re-merging based on claude bot analysis #186122 (comment)"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jithunnair-amd, https://github.com/jeffdaily
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…ed_many_batches linalg tests (pytorch#186122)"

This reverts commit c2b2e5d.

Reverted pytorch#186122 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#186122 (comment)))
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…ed_many_batches linalg tests (pytorch#186122)"

This reverts commit 1e68039.

Reverted pytorch#186122 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#186122 (comment)))
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
…ed_many_batches linalg tests (pytorch#186122)"

This reverts commit 1e68039.

Reverted pytorch#186122 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#186122 (comment)))
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
akashveramd added a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
akashveramd added a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Jul 27, 2026
…ma dependency (#3455)

## Summary

Backports 6 upstream PyTorch PRs to `release/2.13` that enable ROCm
linear algebra tests and remove the Magma dependency by routing through
hipSOLVER (ROCm >= 7.14):

- **pytorch#180303** – Replace `skipCUDAIfNoMagmaAndNoCusolver` with
`skipCUDAIfNoMagmaAndNoLinalgsolver` across linalg tests and OpInfo
definitions, enabling tests on ROCm via hipSOLVER
- **pytorch#187703** – Re-enable `test_preferred_linalg_library` test for ROCm
- **pytorch#185557** – Enable `linalg.eig` / `ldl_solve` via hipSOLVER `xgeev`
(ROCm >= 7.14); enable `test_linalg_solve` and `test_triangular_solve`
via cuBLAS path
- **pytorch#187011** – Merge `test_norm_matrix_degenerate_shapes` variants into
a single test that handles both old and new NumPy behavior
- **pytorch#186122** – Enable `test_inverse_errors_large` and
`test_lu_solve_batched_many_batches` linalg tests on ROCm
- **pytorch#188720** – Enable `cholesky_ex` via hipSOLVER and remove Magma
dependency for autogenerated linalg tests

## Key C++ changes
- `BatchLinearAlgebraLib.cpp/h`, `CUDASolver.cpp/h`: extend `xgeev`,
`xpotrs`, `ldl_solve` and related 64-bit solver paths to compile and run
on ROCm >= 7.14 (`USE_ROCM && ROCM_VERSION >= 71400`)
- `BatchLinearAlgebra.cpp`: route `linalg_eig_kernel` through hipSOLVER
`xgeev` on ROCm >= 7.14 instead of Magma
- `cuda_to_hip_mappings.py`: add hipify mappings for `cusolverDnXgeev`,
`cusolverDnCreateParams`/`DestroyParams`, and related symbols

## Test changes
- Replace `@skipCUDAIfNoMagma` / `@skipCUDAIfNoMagmaAndNoCusolver` with
`@skipCUDAIfNoMagmaAndNoLinalgsolver` across `test_linalg.py`,
`common_methods_invocations.py`, and `opinfo/definitions/linalg.py`
- Remove ROCm-specific `skipIf` skips for
`test_linalg_eig_stride_consistency` in inductor tests
- Add ROCm version guard (`ROCM_VERSION < (7, 14)`) for `linalg.eig` /
`linalg.eigvals` OpInfos on older ROCm without hipSOLVER `xgeev` support

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport
@jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang
@jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10
@aditew01 @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe
@blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames
@chauhang @aakhundov @coconutruben @azahed98

Co-authored-by: Akash Verma <[email protected]>
Co-authored-by: Cursor <[email protected]>
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jithunnair-amd, https://github.com/jeffdaily
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…ed_many_batches linalg tests (pytorch#186122)"

This reverts commit c2b2e5d.

Reverted pytorch#186122 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#186122 (comment)))
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…ed_many_batches linalg tests (pytorch#186122)"

This reverts commit 1e68039.

Reverted pytorch#186122 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#186122 (comment)))
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…batches linalg tests (pytorch#186122)

This PR enabled inverse_errors_large linalg tests that were previously failing for ROCm due to HipBlas errors. The fix was verified locally on rocm-nightly with [torch-2.13.0a0+rocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch-2.13.0a0%2Brocm7.13.0a20260513-cp312-cp312-linux_x86_64.whl) from https://[rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/](https://rocm.nightlies.amd.com/v2-staging/gfx94X-dcgpu/torch/) and release wheels for 7.13 https://[repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/](https://repo.amd.com/rocm/whl/gfx94X-dcgpu/torch/)

The test test_inverse_errors_large passed on trunk (ROCm 7.2) as it ran on this shard which successfully ran
https://github.com/pytorch/pytorch/actions/runs/27307168302/job/80669673812?pr=186122#logs

This PR also enabled test_lu_solve_batched_many_batches linalg test. The fix was validated with docker image ghcr.io/pytorch/ci-image:pytorch-linux-noble-rocm-nightly-py3-7ed27d6a861850867bbd15d52665f27fb821857f and release wheels for 7.13
Although the test passes, however, since it is a slow test, it still gets skipped.

Pull Request resolved: pytorch#186122
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autorevert: disable Disable autorevert for a specific PR ci-no-td Do not run TD on this PR ciflow/rocm-mi200 Trigger "default" config CI on ROCm MI200 ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 ciflow/trunk Trigger trunk jobs on your pull request keep-going Don't stop on first failure, keep running tests until the end Merged module: rocm AMD GPU support for Pytorch open source Reverted topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants