<?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 There is no such library  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Where-to-find-the-mkl-lapack-lib/m-p/1055665#M21408</link>
    <description>&lt;P&gt;There is no such library (&lt;SPAN style="font-size: 11.818181991577148px; line-height: 16.363636016845703px;"&gt;libmkl_lapack.a or libmkl_lapack.so)&amp;nbsp;&lt;/SPAN&gt;included in the current version of MKL, nor is such a library needed. Recent versions of MKL do not separate BLAS, LAPACK, etc., routines into distinct libraries.&lt;/P&gt;

&lt;P&gt;Use the MKL link line advisor (&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor ) to find which libraries you should include. You will probably receive something along the lines of "-L$(MKLROOT)/lib -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -lpthread -lm"&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jul 2014 20:34:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2014-07-04T20:34:00Z</dc:date>
    <item>
      <title>Where to find the mkl_lapack lib</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Where-to-find-the-mkl-lapack-lib/m-p/1055664#M21407</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Hi, I'm trying to compile numpy for python 3.4 with Intel MKL on Mac OS X. In this process I have solved many problems myself, but I'm stuck on this one:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;icc -m64 -O3 -g -fPIC -fp-model strict -fomit-frame-pointer -openmp -xhost -dynamiclib -L/opt/intel/lib/intel64 -L/opt/intel/lib -L/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib -lpython3.4 build/temp.macosx-10.9-x86_64-3.4/numpy/linalg/lapack_litemodule.o build/temp.macosx-10.9-x86_64-3.4/numpy/linalg/lapack_lite/python_xerbla.o -L/opt/intel/mkl/lib -Lbuild/temp.macosx-10.9-x86_64-3.4 -lmkl_lapack -lmkl_rt -lpthread -o build/lib.macosx-10.9-x86_64-3.4/numpy/linalg/lapack_lite.so&lt;BR /&gt;
	ld: library not found for -lmkl_lapack&lt;BR /&gt;
	ld: library not found for -lmkl_lapack&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;So the question is, what directory do I need to add for the above to work. This is what I have in my mkl/lib directory:&lt;/P&gt;

&lt;P&gt;pwd #&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;/opt/intel/composer_xe_2013_sp1.1.103/mkl/lib&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;ls #&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_avx.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libmkl_intel_ilp64.dylib &amp;nbsp;libmkl_mc.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_vml_avx2.dylib&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_avx2.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_intel_lp64.a &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_mc3.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libmkl_vml_mc.dylib&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_blas95.a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_intel_lp64.dylib &amp;nbsp; libmkl_p4m.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libmkl_vml_mc2.dylib&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_blas95_ilp64.a &amp;nbsp; &amp;nbsp; libmkl_intel_sp2dp.a &amp;nbsp; &amp;nbsp; &amp;nbsp;libmkl_p4m3.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_vml_mc3.dylib&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_blas95_lp64.a &amp;nbsp; &amp;nbsp; &amp;nbsp;libmkl_intel_sp2dp.dylib &amp;nbsp;libmkl_p4p.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libmkl_vml_p4m.dylib&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_core.a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_intel_thread.a &amp;nbsp; &amp;nbsp; libmkl_pgi_thread.a &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_vml_p4m2.dylib&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_core.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_intel_thread.dylib libmkl_rt.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_vml_p4m3.dylib&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_intel.a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libmkl_lapack95.a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_sequential.a &amp;nbsp; &amp;nbsp; &amp;nbsp; libmkl_vml_p4p.dylib&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_intel.dylib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libmkl_lapack95_ilp64.a &amp;nbsp; libmkl_sequential.dylib &amp;nbsp; locale&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libmkl_intel_ilp64.a &amp;nbsp; &amp;nbsp; &amp;nbsp;libmkl_lapack95_lp64.a &amp;nbsp; &amp;nbsp;libmkl_vml_avx.dylib&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The above comes from installation of Intel Composer XE 2013 SP 1.1.103&lt;/P&gt;

&lt;P&gt;Please note that I can't use the -mkl flag since that does too much.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I can consistently reproduce this by execution this script:&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13px;"&gt;wget &lt;A href="https://pypi.python.org/packages/source/n/numpy/numpy-1.8.1.tar.gz#md5=be95babe263bfa3428363d6db5b64678" target="_blank"&gt;https://pypi.python.org/packages/source/n/numpy/numpy-1.8.1.tar.gz#md5=be95babe263bfa3428363d6db5b64678&lt;/A&gt;
tar -xf numpy-1.8.1.tar.gz
cd numpy-1.8.1

cat &amp;gt; site.cfg &amp;lt;&amp;lt;EOF
[mkl]
library_dirs = /opt/intel/lib/intel64:/opt/intel/lib:/opt/intel/mkl/lib
include_dirs = /opt/intel/include:/opt/intel/include/intel64:/opt/intel/mkl/include
mkl_libs = mkl_rt
lapack_libs = mkl_lapack
EOF

export PYLINK="import sys; import os; print('-L' + os.path.abspath(os.__file__ + '/../..') + ' -lpython3.' + str(sys.version_info[1]))"

patch numpy/distutils/intelccompiler.py &amp;lt;&amp;lt;EOF
--- intelccompiler_old.py	2014-07-04 19:27:02.000000000 +0200
+++ intelccompiler.py	2014-07-04 19:27:46.000000000 +0200
@@ -36,10 +36,10 @@
     cc_args = "-fPIC"
     def __init__ (self, verbose=0, dry_run=0, force=0):
         UnixCCompiler.__init__ (self, verbose, dry_run, force)
-        self.cc_exe = 'icc -m64 -fPIC'
+        self.cc_exe = 'icc -m64 -O3 -g -fPIC -fp-model strict -fomit-frame-pointer -openmp -xhost'
         compiler = self.cc_exe
         self.set_executables(compiler=compiler,
                              compiler_so=compiler,
                              compiler_cxx=compiler,
                              linker_exe=compiler,
-                             linker_so=compiler + ' -shared')
+                             linker_so=compiler + ' -dynamiclib $(python3 -c $PYLINK)')
EOF

python3 setup.py config --compiler=intelem
python3 setup.py build --compiler=intelem
python3 setup.py install
&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Jul 2014 19:00:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Where-to-find-the-mkl-lapack-lib/m-p/1055664#M21407</guid>
      <dc:creator>Andreas_M_</dc:creator>
      <dc:date>2014-07-04T19:00:58Z</dc:date>
    </item>
    <item>
      <title>There is no such library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Where-to-find-the-mkl-lapack-lib/m-p/1055665#M21408</link>
      <description>&lt;P&gt;There is no such library (&lt;SPAN style="font-size: 11.818181991577148px; line-height: 16.363636016845703px;"&gt;libmkl_lapack.a or libmkl_lapack.so)&amp;nbsp;&lt;/SPAN&gt;included in the current version of MKL, nor is such a library needed. Recent versions of MKL do not separate BLAS, LAPACK, etc., routines into distinct libraries.&lt;/P&gt;

&lt;P&gt;Use the MKL link line advisor (&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor ) to find which libraries you should include. You will probably receive something along the lines of "-L$(MKLROOT)/lib -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -lpthread -lm"&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2014 20:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Where-to-find-the-mkl-lapack-lib/m-p/1055665#M21408</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-07-04T20:34:00Z</dc:date>
    </item>
    <item>
      <title>You don't need to link with</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Where-to-find-the-mkl-lapack-lib/m-p/1055666#M21409</link>
      <description>&lt;P&gt;You don't need to link with libmkl_lapack.*. You need to link with mkl_rt only. P&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;lease look at this article -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;A href="https://software.intel.com/en-us/articles/using-intel-mkl-in-your-python-programs" target="_blank"&gt;https://software.intel.com/en-us/articles/using-intel-mkl-in-your-python-programs&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2014 05:50:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Where-to-find-the-mkl-lapack-lib/m-p/1055666#M21409</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-07-05T05:50:12Z</dc:date>
    </item>
  </channel>
</rss>

