Why does multiprocessing use only a single core after I import numpy?

After some more googling I found the answer here. It turns out that certain Python modules (numpy, scipy, tables, pandas, skimage…) mess with core affinity on import. As far as I can tell, this problem seems to be specifically caused by them linking against multithreaded OpenBLAS libraries. A workaround is to reset the task affinity … Read more

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’, … Read more

What is the relation between BLAS, LAPACK and ATLAS

BLAS is a collection of low-level matrix and vector arithmetic operations (“multiply a vector by a scalar”, “multiply two matrices and add to a third matrix”, etc …). LAPACK is a collection of higher-level linear algebra operations. Things like matrix factorizations (LU, LLt, QR, SVD, Schur, etc) that are used to do things like “find … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)