GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BLD: fix ``_umath_linalg`` dependencies by steppi · Pull Request #24584 · numpy/numpy

Conversation

@steppi

@steppi steppi commented Aug 29, 2023

Copy link
Copy Markdown
Contributor

Closes #24512, where linalg.eigvalsh was observed to be non-thread safe. I determined that the issue was due to the non-thread safe lapack_lite being called instead of the installed BLAS/LAPACK that appears in np.__show__.config(). @rgommers found that the issue is due to blas and lapack being missing from the _umath_linalg extension's sources. He proposed the following fix and I've confirmed that it works locally.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the 36 - Build Build related PR label Aug 29, 2023
@steppi

steppi commented Aug 29, 2023

Copy link
Copy Markdown
Contributor Author

I've made a sub-PR, rgommers#58, that I think should resolve the test failures.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Aug 29, 2023
@rgommers @steppi
BLD: fix _umath_linalg dependencies
13d3ec8
Closes numpygh-24512, where `linalg.eigvalsh` was observed to be non-thread
safe. This was due to the non-thread safe `lapack_lite` being called
instead of the installed BLAS/LAPACK.

Co-authored-by: Albert Steppi <[email protected]>
@rgommers
rgommers force-pushed the fix-umath-linalg branch from 13c55db to 13d3ec8 Compare August 30, 2023 10:17
@rgommers
rgommers marked this pull request as draft August 30, 2023 10:17
@rgommers
rgommers marked this pull request as ready for review August 30, 2023 11:25
@rgommers rgommers changed the title BLD: fix _umath_linalg dependencies, remove linalg.lapack_lite BLD: fix _umath_linalg dependencies Aug 30, 2023
@rgommers rgommers added this to the 2.0.0 release milestone Aug 30, 2023
@rgommers

rgommers commented Aug 30, 2023

Copy link
Copy Markdown
Member

Thanks @steppi I incorporated your fix with a tweak. Reverting the removal of lapack_lite here was the right call I think - I'll leave that to a separate PR later, that makes this one easier to backport to 1.26.x.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers

rgommers commented Aug 30, 2023

Copy link
Copy Markdown
Member

Can you verify that this is still a complete fix?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@steppi

steppi commented Aug 30, 2023

Copy link
Copy Markdown
Contributor Author

Can you verify that this is still a complete fix?

Looks good and works locally. Thanks @rgommers.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers

rgommers commented Aug 30, 2023

Copy link
Copy Markdown
Member

Thanks! Let's go with this then. Marked for backport, so it should be present in 1.26.0rc1.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers
rgommers merged commit a115ed3 into numpy:main Aug 30, 2023
@rgommers
rgommers deleted the fix-umath-linalg branch August 30, 2023 12:20
charris pushed a commit to charris/numpy that referenced this pull request Aug 30, 2023
@steppi @rgommers @charris
BLD: fix _umath_linalg dependencies (numpy#24584)
4839060
Closes numpygh-24512, where `linalg.eigvalsh` was observed to be non-thread
safe. This was due to the non-thread safe `lapack_lite` being called
instead of the installed BLAS/LAPACK.

Co-authored-by: Ralf Gommers <[email protected]>
@charris charris changed the title BLD: fix _umath_linalg dependencies BLD: fix _umath_linalg dependencies Aug 30, 2023
@charris charris mentioned this pull request Aug 30, 2023
BLD: fix _umath_linalg dependencies #24591
Merged
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Aug 30, 2023
@charris charris removed this from the 2.0.0 release milestone Aug 30, 2023
charris pushed a commit to charris/numpy that referenced this pull request Nov 11, 2023
@steppi @rgommers @charris
BLD: fix _umath_linalg dependencies (numpy#24584)
0eecba5
Closes numpygh-24512, where `linalg.eigvalsh` was observed to be non-thread
safe. This was due to the non-thread safe `lapack_lite` being called
instead of the installed BLAS/LAPACK.

Co-authored-by: Ralf Gommers <[email protected]>
@TimotheusBachinger TimotheusBachinger mentioned this pull request Nov 25, 2024
fix build #27836
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

36 - Build Build related PR

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BUG: SIGABRT on using ThreadPoolExecutor with linalg.eigvalsh in v1.26.0b1

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@steppi @rgommers @charris
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.