Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Anaconda 4.0.2 already runs numpy on MKL

I have Ananconda4.0.2 in my system. I tried finding out my numpy config by following commands in python console:

import numpy as np
np.__config__.show()

It returned following output

lapack_opt_info:
libraries = ['mkl_lapack95_lp64', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread']
library_dirs = ['/home/<username>/anaconda2/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/home/<username>/anaconda2/include']
blas_opt_info:
libraries = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread']
library_dirs = ['/home/<username>/anaconda2/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/home/<username>/anaconda2/include']
openblas_lapack_info:
NOT AVAILABLE
lapack_mkl_info:
libraries = ['mkl_lapack95_lp64', 'mkl_intel_lp64', 'mkl_intel_thread','mkl_core', 'iomp5', 'pthread']
library_dirs = ['/home/<username>/anaconda2/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/home/<username>/anaconda2/include']
blas_mkl_info:
libraries = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread']
library_dirs = ['/home/<username>/anaconda2/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/home/<username>/anaconda2/include']
mkl_info:
libraries = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'iomp5', 'pthread']
library_dirs = ['/home/<username>/anaconda2/lib']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/home/<username>/anaconda2/include']

Does this mean that my numpy already uses mkl?

like image 793
nitesh kansal Avatar asked May 14 '16 08:05

nitesh kansal


People also ask

Is Numpy using MKL?

NumPy doesn't depend on any other Python packages, however, it does depend on an accelerated linear algebra library - typically Intel MKL or OpenBLAS.

Is Numpy installed in Anaconda?

If you installed the Anaconda distribution of Python, NumPy comes pre-installed and no further installation steps are necessary. If you use a version of Python from python.org or a version of Python that came with your operating system, the Anaconda Prompt and conda or pip can be used to install NumPy.

What is Numpy MKL?

So numpy-mkl just means a version of numpy compiled against the MKL fortran library. Probably whichever version of numpy you previously had installed was somehow broken, and couldn't find the libraries it needed. Follow this answer to receive notifications.

Does Anaconda have all Python libraries?

Anaconda comes with over 150 pre-installed Python packages to get you started quickly. Some common packages that come pre-installed are: numpy.


1 Answers

Yes, starting with Anaconda 2.5 MKL support is the default.

To find out for sure, type:

conda search numpy

You will see things like

*  1.10.4                   py27_0  defaults        
   1.10.4             py27_nomkl_0  defaults        [nomkl]

or

.  1.10.4                   py35_0  defaults        
   1.10.4             py35_nomkl_0  defaults        [nomkl]

So the version without MKL is explicitly marked as such with nomkl and the ones installed (* or .) include MKL.

like image 70
Mike Müller Avatar answered Oct 02 '22 22:10

Mike Müller