Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow python to build with non-scipy blas and lapack #151

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

goulart-paul
Copy link
Member

This allows the solver to be compiled for python without using blas/lapack functions from scipy. Specifying one of the supported blas/lapack features (e.g. sdp-mkl, `sdp-accelerate') will now use those instead, following the behaviour of non-python builds.

If the python feature is specified without naming a blas distribution, then the previous behaviour of acquiring blas/lapack pointers from scipy is maintained. This is the preferred method in particular for distribution on pypi.

Note that the python interface should still be built via maturin.

For the standard build with the clarabel using scipy blas / lapack:
maturin develop --release

To build the python interface using a local blas/lapack distribution (e.g. mkl):
maturin develop --release --features python,sdp-mkl

@goulart-paul goulart-paul merged commit bacfd92 into develop Jan 13, 2025
1 check passed
@goulart-paul goulart-paul deleted the pg/py_local_blas branch February 2, 2025 22: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.

1 participant