Discussion:
[Numpy-discussion] Build NumPy against MATLAB BLAS & Lapack
Marmaduke Woodman
2016-04-06 10:59:32 UTC
Permalink
hi

I'm trying to provide a Python numerical library to colleagues who are
MATLAB users, since recent MATLAB versions include an official method
for calling Python [1], and I'm struggling to build NumPy which is
compatible with MATLAB's libraries.

My current site.cfg is here

https://gist.github.com/maedoc/a41cb253011ad55edacca560a66dff76

I build from Git master with

BLAS=none LAPACK=none ATLAS=none python setup.py install

Currently, most of NumPy works, except linear algebra calls, like
pinv, which segfault inside the MKL: np.__config__.show() shows NumPy
thinks it linked against OpenBLAS with a CBLAS ABI, not a standard
Fortran BLAS api.

Is there a way to force the NumPy build to ignore OpenBLAS and assume
it's calling the standard Fortran style BLAS functions?

Thanks in advance for any comments or suggestions,
Marmaduke

[1] http://fr.mathworks.com/help/matlab/call-python-libraries.html
Loading...