python - Link MKL to an installed Numpy in Anaconda? -


>>> numpy.__config__.show() atlas_threads_info:   not available blas_opt_info:     libraries = ['f77blas', 'cblas', 'atlas']     library_dirs = ['/home/admin/anaconda/lib']     define_macros = [('atlas_info', '"\\"3.8.4\\""')]     language = c atlas_blas_threads_info:   not available openblas_info:   not available lapack_opt_info:     libraries = ['lapack', 'f77blas', 'cblas', 'atlas']     library_dirs = ['/home/admin/anaconda/lib']     define_macros = [('atlas_info', '"\\"3.8.4\\""')]     language = f77 openblas_lapack_info:   not available atlas_info:     libraries = ['lapack', 'f77blas', 'cblas', 'atlas']     library_dirs = ['/home/admin/anaconda/lib']     define_macros = [('atlas_info', '"\\"3.8.4\\""')]     language = f77 lapack_mkl_info:   not available blas_mkl_info:   not available atlas_blas_info:     libraries = ['f77blas', 'cblas', 'atlas']     library_dirs = ['/home/admin/anaconda/lib']     define_macros = [('atlas_info', '"\\"3.8.4\\""')]     language = c mkl_info:   not available 

this numpy.config.show()

and numpy based on anaconda.

in /home/admin/anaconda/lib/python2.7/site-packages/numpy

and meanwhile, have installed mkl in /opt/intel/mkl.

also seems that, can use mkl, when used theano anaconda , numpy.

thank you~

to this, you'll have numpy source code , create site.cfg file in main folder tells numpy mkl libraries. use site.cfg.example file guide; there's section in there on mkl should tell exact lines need.

once have site.cfg file, run python setup.py config. spit out configuration info (it looks output of numpy.config.show()). should see paths mkl libraries in there (if not, you'll have play around site.cfg file until do).

then, can build , install python setup.py build , python setup.py install. may want uninstall old numpy first.

i have blog post on installing numpy openblas. while situation little different, lot of steps similar think.


Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -