<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Please refer this article on in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972159#M16794</link>
    <description>&lt;P&gt;Please refer this article on installing scipy/numpy with mkl&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl"&gt;http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;--Vipin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2014 05:33:48 GMT</pubDate>
    <dc:creator>VipinKumar_E_Intel</dc:creator>
    <dc:date>2014-04-07T05:33:48Z</dc:date>
    <item>
      <title>Cannot find BLAS on a machine with MKL when installing scipy via pip</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972156#M16791</link>
      <description>&lt;P&gt;I installed Intel MKL and other libraries for a customized numpy. Here is my `~/.numpy-site.cfg`:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;    [DEFAULT]
    library_dirs = /usr/lib:/usr/local/lib
    include_dirs = /usr/include:/usr/local/include
    
    [mkl]
    library_dirs = /opt/intel/mkl/lib/intel64/
    include_dirs = /opt/intel/mkl/include/
    mkl_libs = mkl_intel_ilp64, mkl_intel_thread, mkl_core, mkl_rt
    lapack_libs =
    
    [amd]
    amd_libs = amd
    
    [umfpack]
    umfpack_libs = umfpack
    
    [djbfft]
    include_dirs = /usr/local/djbfft/include
    library_dirs = /usr/local/djbfft/lib&lt;/PRE&gt;

&lt;P&gt;This configuration file seems OK during the installation of numpy. But when I was installing scipy via `pip3 install scipy`, it reported that&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;    numpy.distutils.system_info.BlasNotFoundError:
    
        Blas (http://www.netlib.org/blas/) libraries not found.
    
        Directories to search for the libraries can be specified in the
    
        numpy/distutils/site.cfg file (section [blas]) or by setting
    
        the BLAS environment variable.&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	In my mind MKL is an implementation of Blas so just mentioning MKL should be fine. I've tried&lt;/P&gt;

&lt;P&gt;&amp;nbsp;1. `export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:$LD_LIBRARY_PATH‌​`&lt;BR /&gt;
	&amp;nbsp;2. `export BLAS=/opt/intel/mkl/lib/intel64`&lt;BR /&gt;
	&amp;nbsp;3. Copy the content in the `[mkl]` section and paste into the `[blas]` section in the file `~/.numpy-site.cfg`&lt;/P&gt;

&lt;P&gt;But none of these works. So what is going wrong? Does scipy respect `~/.numpy-site.cfg`? Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2014 21:09:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972156#M16791</guid>
      <dc:creator>Ziyuan</dc:creator>
      <dc:date>2014-04-05T21:09:13Z</dc:date>
    </item>
    <item>
      <title>I don't have an answer</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972157#M16792</link>
      <description>&lt;P&gt;I don't have an answer specific to scipy, but when you port any configure/make scripts from Gcc/GFortran/Netlib BLAS/Lapack to Ifort/MKL, you may need to adapt the scripts in view of the fact that MKL includes BLAS as well as Lapack, so that it suffices to link against MKL.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2014 00:30:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972157#M16792</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-04-06T00:30:07Z</dc:date>
    </item>
    <item>
      <title>Quote:mecej4 wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972158#M16793</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;mecej4 wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I don't have an answer specific to scipy, but when you port any configure/make scripts from Gcc/GFortran/Netlib BLAS/Lapack to Ifort/MKL, you may need to adapt the scripts in view of the fact that MKL includes BLAS as well as Lapack, so that it suffices to link against MKL.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Yes I think so too. Scipy does support MKL, and this is an example about how to write the&amp;nbsp;&lt;SPAN style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;"&gt;~/.numpy-site.cfg: &lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;A href="https://github.com/numpy/numpy/blob/master/site.cfg.example" target="_blank"&gt;https://github.com/numpy/numpy/blob/master/site.cfg.example&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2014 00:55:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972158#M16793</guid>
      <dc:creator>Ziyuan</dc:creator>
      <dc:date>2014-04-06T00:55:59Z</dc:date>
    </item>
    <item>
      <title>Please refer this article on</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972159#M16794</link>
      <description>&lt;P&gt;Please refer this article on installing scipy/numpy with mkl&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl"&gt;http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;--Vipin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2014 05:33:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972159#M16794</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2014-04-07T05:33:48Z</dc:date>
    </item>
    <item>
      <title>Quote:Vipin Kumar E K (Intel)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972160#M16795</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Vipin Kumar E K (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Please refer this article on installing scipy/numpy with mkl&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl"&gt;http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;--Vipin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;It's for installing from source, while I am asking about installing via pip.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2014 08:25:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972160#M16795</guid>
      <dc:creator>Ziyuan</dc:creator>
      <dc:date>2014-04-07T08:25:07Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972161#M16796</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can you modify your site.config for mkl_libs instead of&lt;/P&gt;

&lt;P&gt;mkl_libs = mkl_intel_ilp64, mkl_intel_thread, mkl_core, mkl_rt&lt;/P&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;P&gt;mkl_libs =&amp;nbsp; mkl_rt&lt;/P&gt;

&lt;P&gt;mkl_rt is the runtime dynamic lib and you don't need to specify other libs from different layers.&lt;/P&gt;

&lt;P&gt;Also, set the MKl env variables by running&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;$source /opt/intel/mkl/bin/mklvars.sh ?&lt;/P&gt;

&lt;P&gt;Vipin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2014 04:25:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972161#M16796</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2014-04-08T04:25:47Z</dc:date>
    </item>
    <item>
      <title>Quote:Vipin Kumar E K (Intel)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972162#M16797</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Vipin Kumar E K (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can you modify your site.config for mkl_libs instead of&lt;/P&gt;

&lt;P&gt;mkl_libs = mkl_intel_ilp64, mkl_intel_thread, mkl_core, mkl_rt&lt;/P&gt;

&lt;P&gt;to&lt;/P&gt;

&lt;P&gt;mkl_libs =&amp;nbsp; mkl_rt&lt;/P&gt;

&lt;P&gt;mkl_rt is the runtime dynamic lib and you don't need to specify other libs from different layers.&lt;/P&gt;

&lt;P&gt;Also, set the MKl env variables by running&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;$source /opt/intel/mkl/bin/mklvars.sh ?&lt;/P&gt;

&lt;P&gt;Vipin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi. It doesn't work either.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ source /opt/intel/mkl/bin/mklvars.sh intel64 ilp64
$ echo $MKLROOT
/opt/intel/composer_xe_2013_sp1.2.144/mkl
$ sudo pip3 install scipy&lt;/PRE&gt;

&lt;P&gt;will give the same error. Particularly, here are the messages about not finding the libs:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;Installing collected packages: scipy
  Running setup.py install for scipy
    blas_opt_info:
    blas_mkl_info:
      libraries mkl,vml,guide not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE
    
    openblas_info:
      libraries  not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE
    
    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE
    
    atlas_blas_info:
      libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE
    
    blas_info:
      libraries blas not found in ['/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
      NOT AVAILABLE
    
    blas_src_info:
      NOT AVAILABLE
    
    /usr/local/lib/python3.3/dist-packages/numpy/distutils/system_info.py:1521: UserWarning:
        Atlas (http://math-atlas.sourceforge.net/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [atlas]) or by setting
        the ATLAS environment variable.
      warnings.warn(AtlasNotFoundError.__doc__)
    /usr/local/lib/python3.3/dist-packages/numpy/distutils/system_info.py:1530: UserWarning:
        Blas (http://www.netlib.org/blas/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [blas]) or by setting
        the BLAS environment variable.
      warnings.warn(BlasNotFoundError.__doc__)
    /usr/local/lib/python3.3/dist-packages/numpy/distutils/system_info.py:1533: UserWarning:
        Blas (http://www.netlib.org/blas/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [blas_src]) or by setting
        the BLAS_SRC environment variable.
&lt;/PRE&gt;

&lt;P&gt;It seems that the MKL paths haven't gone into the environmental variables.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 14:03:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972162#M16797</guid>
      <dc:creator>Ziyuan</dc:creator>
      <dc:date>2014-04-28T14:03:14Z</dc:date>
    </item>
    <item>
      <title>Hi ziyuan, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972163#M16798</link>
      <description>&lt;P&gt;Hi ziyuan,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Could you please try the Root to install the scipy?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I haven't&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;investigated how pip3 works, but sudo can't inherit the environment setting from &amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="functions" style="font-size: 13px; line-height: 14.30880069732666px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: inherit !important; color: rgb(255, 20, 147) !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;source&lt;/CODE&gt;&lt;SPAN style="font-size: 1em; color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; line-height: 14.30880069732666px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="plain" style="font-size: 13px; line-height: 14.30880069732666px; color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: inherit !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;/opt/intel/mkl/bin/mklvars.sh intel64 ilp64&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE class="plain" style="font-size: 13px; line-height: 14.30880069732666px; color: rgb(0, 0, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: inherit !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"&gt;as we mentioned in&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/topic/277619#comment-1794098.&amp;nbsp;" target="_blank"&gt;https://software.intel.com/en-us/forums/topic/277619#comment-1794098.&amp;nbsp;&lt;/A&gt;;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2014 05:30:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Cannot-find-BLAS-on-a-machine-with-MKL-when-installing-scipy-via/m-p/972163#M16798</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2014-07-21T05:30:11Z</dc:date>
    </item>
  </channel>
</rss>

