BLAS and LAPACK
Default behavior for BLAS and LAPACK selection
When a NumPy build is invoked, BLAS and LAPACK library detection happens
automatically. The build system will attempt to locate a suitable library,
and try a number of known libraries in a certain order - most to least
performant. A typical order is: MKL, Accelerate, OpenBLAS, FlexiBLAS, BLIS,
plain libblas/liblapack. This may vary per platform or over releases.
That order, and which libraries are tried, can be changed through the
blas-order and lapack-order build options, for example:
$ python -m pip install . -Csetup-args=-Dblas-order=openblas,mkl,blis=-Dlapack-order=openblas,mkl,lapack