Repository navigation
[ROCm] Re-enable test_preferred_linalg_library test for ROCm - #187703
Closed
akashveramd wants to merge 3 commits into
Closed
akashveramd wants to merge 3 commits into
akashveramd wants to merge 3 commits into
Conversation
jithunnair-amd
approved these changes
Jun 24, 2026
akashveramd
marked this pull request as ready for review
June 26, 2026 00:16
jeffdaily
approved these changes
Jun 26, 2026
Collaborator
|
@pytorchbot merge -f "unrelated failures" |
Collaborator
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
gplutop7
pushed a commit
to gplutop7/pytorch
that referenced
this pull request
Jul 15, 2026
…#187703) This PR re-enabled test_preferred_linalg_library test for ROCm Pull Request resolved: pytorch#187703 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
…#187703) This PR re-enabled test_preferred_linalg_library test for ROCm Pull Request resolved: pytorch#187703 Approved by: https://github.com/jithunnair-amd, https://github.com/jeffdaily
akashveramd
added a commit
to akashveramd/pytorch
that referenced
this pull request
Jul 21, 2026
…rary for ROCm Raw cherry-pick of upstream commit a9fb86c. Conflicts in test/test_linalg.py left unresolved (conflict markers present). Co-authored-by: Cursor <[email protected]>
akashveramd
pushed a commit
to akashveramd/pytorch
that referenced
this pull request
Jul 21, 2026
…nalg_library for ROCm Conflict in test/test_linalg.py resolved: Large conflict spanning the end of TestLinalg class through EOF. HEAD had test_preferred_linalg_library in TestLinalg with @skipCUDAIfNoMagma. PR brings in the full TestLinalgCudaOnly class (with many TunableOp tests) and a refactored test_preferred_linalg_library that uses @onlyCUDA and conditionally tests Magma only when torch.cuda.has_magma is True. Resolution: - Kept HEAD version of test_logaddexp_cpu_vs_cuda_complex (out_gpu style, not the upstream out_accelerator refactoring which was not part of this PR) - Added full TestLinalgCudaOnly class from the PR (contains the updated test_preferred_linalg_library plus all TunableOp tests) - Removed duplicate old test_preferred_linalg_library from TestLinalg class - Restored skipCUDAIfNoMagma to import (still used by 4 tests in TestLinalg that will be addressed by later PRs in this series) Co-authored-by: Cursor <[email protected]>
akashveramd
added a commit
to akashveramd/pytorch
that referenced
this pull request
Jul 21, 2026
…rary for ROCm Co-authored-by: Cursor <[email protected]>
akashveramd
pushed a commit
to akashveramd/pytorch
that referenced
this pull request
Jul 21, 2026
…nalg_library for ROCm Applied the 13-line upstream change only to TestLinalg.test_preferred_linalg_library: - Removed @skipCUDAIfNoMagma decorator - Guarded the 'magma' backend path with if torch.cuda.has_magma: Dropped the entire upstream TestLinalgCudaOnly block (it does not exist in 2.11; all those tests live in TestLinalg). File footer and line count match the 2.11 baseline. Co-authored-by: Cursor <[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]>
aws-kingrj
pushed a commit
to amazon-contributing/upstream-to-pytorch
that referenced
this pull request
Jul 29, 2026
…#187703) This PR re-enabled test_preferred_linalg_library test for ROCm Pull Request resolved: pytorch#187703 Approved by: https://github.com/jithunnair-amd, https://github.com/jeffdaily
1 task
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.
This PR re-enabled test_preferred_linalg_library test for ROCm
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang