Skip to content

FIX Fix OpenBLAS detection for conda package on Windows - #240

Merged
ogrisel merged 14 commits into
joblib:masterfrom
lesteve:fix-conda-openblas-detection-windows
Sep 8, 2026
Merged

FIX Fix OpenBLAS detection for conda package on Windows#240
ogrisel merged 14 commits into
joblib:masterfrom
lesteve:fix-conda-openblas-detection-windows

Conversation

@lesteve

@lesteve lesteve commented Sep 8, 2026

Copy link
Copy Markdown
Member

Fix #231

So OpenBLAS from conda use openblas.dll, which probably means we never detected OpenBLAS conda package? pip on Windows does use libscipy_openblas prefix.

@ogrisel ogrisel left a comment

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.

Thanks for the fix but the new test will fail if numpy and scipy use atlas, mkl, blis...

info = threadpool_info_from_subprocess(module)

blas_info = select(info, internal_api="openblas")
assert len(blas_info) > 0

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.

We should inspect the output of pip freeze and/or conda list to set expectations on the presence of openblas.

@lesteve

lesteve commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

Thanks for the fix but the new test will fail if numpy and scipy use atlas, mkl, blis...

I tweaked the test to check that any BLAS implementation is detected. Not sure if you want a more thorough test comparing the internal_api detected vs the mamba list or pip list output?

@ogrisel ogrisel left a comment

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.

Thanks @lesteve!

@ogrisel
ogrisel merged commit ba03124 into joblib:master Sep 8, 2026
22 checks passed
@lesteve
lesteve deleted the fix-conda-openblas-detection-windows branch September 10, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

threadpoolctl fails to detect openblas from the defaults conda channel on Windows

2 participants