Have numpy use openblas for BLAS and LAPACK - #6194
Draft
jjerphan wants to merge 2 commits into
Draft
Conversation
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
jjerphan
commented
Aug 7, 2026
Contributor
Author
There was a problem hiding this comment.
I tried using threadpoolctl to test that OpenBLAS DSO are loaded at runtime, but I am getting errors.
│ test_numpy.py .F....
│ =================================== FAILURES ===================================
│ _______________________ test_openblas_linked_at_runtime ________________________
│ def test_openblas_linked_at_runtime():
│ # Load NumPy's BLAS/LAPACK-backed extensions before introspecting.
│ _ = np.dot(np.eye(2), np.ones(2))
│
│ info = threadpool_info()
│ openblas = [lib for lib in info if lib["internal_api"] == "openblas"]
│ > assert openblas, f"OpenBLAS not detected by threadpoolctl: {info}"
│ E AssertionError: OpenBLAS not detected by threadpoolctl: []
│ E assert []
│ test_numpy.py:17: AssertionError
│ =============================== warnings summary ===============================
│ test_numpy.py::test_openblas_linked_at_runtime
│ /lib/python3.13/site-packages/threadpoolctl.py:1129: UserWarning: Unable to import LDSO from pyodide_js._module. This should never happen.
│ warnings.warn(Given the UserWarning reported, I think threadpoolctl first needs to be adapted for this environment before it can report DSO and other pieces of information at runtime.
jjerphan
marked this pull request as ready for review
August 7, 2026 15:46
jjerphan
marked this pull request as draft
August 7, 2026 15:49
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.
No description provided.