Skip to content

Fixed the size of the workspace array in functions calling LAPACK#53909

Closed
IvanYashchuk wants to merge 1 commit intopytorch:masterfrom
IvanYashchuk:fix-lapack-worksize
Closed

Fixed the size of the workspace array in functions calling LAPACK#53909
IvanYashchuk wants to merge 1 commit intopytorch:masterfrom
IvanYashchuk:fix-lapack-worksize

Conversation

@IvanYashchuk
Copy link
Copy Markdown
Collaborator

The size of the workspace array should be max(1, lwork) according to LAPACK documentation. We got away with this previously because we tested only MKL which does a nice thing returning lwork >= 1.

Fixes #53454

@IvanYashchuk IvanYashchuk added the module: linear algebra Issues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmul label Mar 12, 2021
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Mar 12, 2021

💊 CI failures summary and remediations

As of commit f4824c2 (more details on the Dr. CI page):


None of the CI failures appear to be your fault 💚



🚧 3 fixed upstream failures:

These were probably caused by upstream breakages that were already fixed.

Please rebase on the viable/strict branch (expand for instructions)

If your commit is older than viable/strict, run these commands:

git fetch https://github.com/pytorch/pytorch viable/strict
git rebase FETCH_HEAD

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Copy link
Copy Markdown
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Cool! Thanks @IvanYashchuk!

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Copy Markdown
Contributor

@heitorschueroff heitorschueroff left a comment

Choose a reason for hiding this comment

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

Good catch!

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@mruberry merged this pull request in 790326d.

xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
…torch#53909)

Summary:
The size of the workspace array should be max(1, lwork) according to LAPACK documentation. We got away with this previously because we tested only MKL which does a nice thing returning lwork >= 1.

Fixes pytorch#53454

Pull Request resolved: pytorch#53909

Reviewed By: heitorschueroff

Differential Revision: D27017025

Pulled By: mruberry

fbshipit-source-id: 040a8cfb4bfb98db47d0b117938856d9483b20fb
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…torch#53909)

Summary:
The size of the workspace array should be max(1, lwork) according to LAPACK documentation. We got away with this previously because we tested only MKL which does a nice thing returning lwork >= 1.

Fixes pytorch#53454

Pull Request resolved: pytorch#53909

Reviewed By: heitorschueroff

Differential Revision: D27017025

Pulled By: mruberry

fbshipit-source-id: 040a8cfb4bfb98db47d0b117938856d9483b20fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged module: linear algebra Issues related to specialized linear algebra operations in PyTorch; includes matrix multiply matmul open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SIGSEGV in torch.linalg.inv

5 participants