Skip to content

[MPS] linalg solve implementation#146531

Closed
Isalia20 wants to merge 5 commits intopytorch:mainfrom
Isalia20:mps-linalg-solve
Closed

[MPS] linalg solve implementation#146531
Isalia20 wants to merge 5 commits intopytorch:mainfrom
Isalia20:mps-linalg-solve

Conversation

@Isalia20
Copy link
Copy Markdown
Collaborator

@Isalia20 Isalia20 commented Feb 5, 2025

Fixes #98222

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Feb 5, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 49 Pending

As of commit 08b8bf6 with merge base fd0cd6a (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added the release notes: mps Release notes category label Feb 5, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2025

Attention! native_functions.yaml was changed

If you are adding a new function or defaulted argument to native_functions.yaml, you cannot use it from pre-existing Python frontend code until our FC window passes (two weeks). Split your PR into two PRs, one which adds the new C++ functionality, and one that makes use of it from Python, and land them two weeks apart. See https://github.com/pytorch/pytorch/wiki/PyTorch's-Python-Frontend-Backward-and-Forward-Compatibility-Policy#forwards-compatibility-fc for more info.


Caused by:

@malfet malfet added topic: improvements topic category ciflow/mps Run MPS tests (subset of trunk) labels Feb 5, 2025
run_lu_factor_ex_test(32, 10, 10, check_errors=False)
run_lu_factor_ex_test(32, 2, 2, 2, 2, 10, 10, check_errors=True)

def test_linalg_solve(self):
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.

Just curious, is this test really necessary, as OpInfo tests presumably already covers that?

@malfet
Copy link
Copy Markdown
Contributor

malfet commented Feb 6, 2025

@pytorchbot merge -f "Lint + MPS are green"

@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

malfet added a commit that referenced this pull request Feb 18, 2026
I should have been more careful while reviewing
#146531 which initalized pivot
tensors but never copied them back (nor offset them by 1 as
LAPACK/Fortran expects)

Fixes #175192


ghstack-source-id: 299fa6b
Pull-Request: #175284
pytorchmergebot pushed a commit that referenced this pull request Feb 19, 2026
I should have been more careful while reviewing #146531 which initialized pivot tensors but never copied them back (nor offset them by 1 as LAPACK/Fortran expects)

Fixes #175192
Pull Request resolved: #175284
Approved by: https://github.com/manuelcandales
norx1991 pushed a commit that referenced this pull request Feb 24, 2026
I should have been more careful while reviewing #146531 which initialized pivot tensors but never copied them back (nor offset them by 1 as LAPACK/Fortran expects)

Fixes #175192
Pull Request resolved: #175284
Approved by: https://github.com/manuelcandales
EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
I should have been more careful while reviewing pytorch#146531 which initialized pivot tensors but never copied them back (nor offset them by 1 as LAPACK/Fortran expects)

Fixes pytorch#175192
Pull Request resolved: pytorch#175284
Approved by: https://github.com/manuelcandales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/mps Run MPS tests (subset of trunk) Merged open source release notes: mps Release notes category topic: improvements topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aten::_linalg_solve_ex.result' is not currently implemented for the MPS

4 participants