How to check BLAS/LAPACK linkage in NumPy and SciPy?
The method numpy.show_config()
(or numpy.__config__.show()
) outputs information about linkage gathered at build time. My output looks like this. I think it means I am using the BLAS/LAPACK that ships with Mac OS.
>>> import numpy as np
>>> np.show_config()
lapack_opt_info:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
extra_compile_args = ['-msse3']
define_macros = [('NO_ATLAS_INFO', 3)]
blas_opt_info:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
define_macros = [('NO_ATLAS_INFO', 3)]
What you are searching for is this: system info
I compiled numpy/scipy with atlas and i can check this with:
import numpy.distutils.system_info as sysinfo
sysinfo.get_info('atlas')
Check the documentation for more commands.