[Numpy-discussion] Build NumPy against MATLAB BLAS & Lapack

Marmaduke Woodman mmwoodman at gmail.com
Wed Apr 6 06:59:32 EDT 2016


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


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,

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

More information about the NumPy-Discussion mailing list