<?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 Re: link with blas and lapack in Intel MKL kit in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262060#M30988</link>
    <description>&lt;P&gt;I followed &lt;A href="https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html" target="_self" rel="nofollow noopener noreferrer"&gt;MKL Link Line Advisor&lt;/A&gt;&amp;nbsp;and used&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -lgomp -lpthread -lm -ldl&lt;/P&gt;
&lt;P&gt;This is the just what I used before trying&amp;nbsp;&lt;SPAN&gt;'-lmkl_blas95_lp64 -lmkl_lapack95_lp64'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;ldd shows my app still use blas from system lib&amp;nbsp;/usr/lib64/libblas.so.3&lt;/P&gt;</description>
    <pubDate>Sat, 06 Mar 2021 23:32:10 GMT</pubDate>
    <dc:creator>cjl</dc:creator>
    <dc:date>2021-03-06T23:32:10Z</dc:date>
    <item>
      <title>link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1261963#M30985</link>
      <description>&lt;P&gt;On Linux with GCC, how can I ensure that I am linking against blas and lapack in Intel MKL kit, which is supposed to have better performance than standard Linux system blas and lapack?&lt;/P&gt;
&lt;P&gt;I thought if I compile my application with '-lmkl_blas95_lp64 -lmkl_lapack95_lp64', it will link against&amp;nbsp;blas and lapack in Intel MKL kit.&lt;/P&gt;
&lt;P&gt;But if I use 'ldd compiled_binary' it shows the binary is linked against standard Linux system blas and lapack&lt;/P&gt;
&lt;P&gt;libblas.so.3 =&amp;gt; /usr/lib64/libblas.so.3 (0x00007f51fa44d000)&lt;BR /&gt;libf77blas.so.3 =&amp;gt; /usr/lib64/atlas/libf77blas.so.3 (0x00007f51fa229000)&lt;BR /&gt;libcblas.so.3 =&amp;gt; /usr/lib64/atlas/libcblas.so.3 (0x00007f51fa008000)&lt;/P&gt;
&lt;P&gt;liblapack.so.3 =&amp;gt; /usr/lib64/atlas/liblapack.so.3 (0x00007ff407c2f000)&lt;/P&gt;
&lt;P&gt;What am I doing wrong here? Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 02:43:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1261963#M30985</guid>
      <dc:creator>cjl</dc:creator>
      <dc:date>2021-03-06T02:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1261968#M30986</link>
      <description>&lt;P&gt;If your code does not make any Lapack95 or BLAS95 calls, but calls the Fortran 77 routines in Lapack and BLAS, the two extra libraries that you specified do not contain any routines that are needed, so the linker will pull nothing from them. The routines in the *95 libraries have shorter argument lists and often some of the arguments are optional, so any routine that calls these more convenient interfaces needs to provide interfaces to them. See the examples provided with MKL.&lt;/P&gt;
&lt;P&gt;If you are calling Lapack or BLAS routines from C code, you should not be using the *95 libraries at all -- they are only for calling from modern Fortran.&lt;/P&gt;
&lt;P&gt;If you want to use the MKL versions of the Lapack and BLAS libraries, you will have to use the linker's -L option to specify the location of those libraries, and -l options to specify which MKL libraries to use.&lt;/P&gt;
&lt;P&gt;It is helpful to use the &lt;A href="https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html" target="_self"&gt;MKL Link Line Advisor&lt;/A&gt; for obtaining the command line to use.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 03:56:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1261968#M30986</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-03-06T03:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262059#M30987</link>
      <description>&lt;P&gt;Then what -L -l option I should use to force my app to use BLAS and LAPACK from MKL?&amp;nbsp; I thought&amp;nbsp;&lt;SPAN&gt;'-lmkl_blas95_lp64 -lmkl_lapack95_lp64' was for&amp;nbsp;BLAS and LAPACK.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ls *blas* *lapack* in lib/ gives me:&lt;BR /&gt;libmkl_blas95_ilp64.a libmkl_scalapack_ilp64.so&lt;BR /&gt;libmkl_blas95_lp64.a libmkl_scalapack_ilp64.so.1&lt;BR /&gt;libmkl_lapack95_ilp64.a libmkl_scalapack_lp64.a&lt;BR /&gt;libmkl_lapack95_lp64.a libmkl_scalapack_lp64.so&lt;BR /&gt;libmkl_scalapack_ilp64.a libmkl_scalapack_lp64.so.1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 23:19:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262059#M30987</guid>
      <dc:creator>cjl</dc:creator>
      <dc:date>2021-03-06T23:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262060#M30988</link>
      <description>&lt;P&gt;I followed &lt;A href="https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html" target="_self" rel="nofollow noopener noreferrer"&gt;MKL Link Line Advisor&lt;/A&gt;&amp;nbsp;and used&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core -lgomp -lpthread -lm -ldl&lt;/P&gt;
&lt;P&gt;This is the just what I used before trying&amp;nbsp;&lt;SPAN&gt;'-lmkl_blas95_lp64 -lmkl_lapack95_lp64'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;ldd shows my app still use blas from system lib&amp;nbsp;/usr/lib64/libblas.so.3&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 23:32:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262060#M30988</guid>
      <dc:creator>cjl</dc:creator>
      <dc:date>2021-03-06T23:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262107#M30990</link>
      <description>&lt;P&gt;You have not told us which BLAS and Lapack routines are being called from your code and you have not reported how you compile and link, and I cannot guess what is going wrong.&lt;/P&gt;
&lt;P&gt;To repeat what I wrote earlier: You should not be trying to link with libraries containing "95" in their names at all unless you are coding in Fortran and you chose deliberately to call Lapack95/BLAS95 routines.&lt;/P&gt;
&lt;P&gt;You should not link libraries and objects with a mix of LP64/ILP64 conventions, with rare exceptions. LP64 is for calling MKL routines with 32-bit integer arguments, and ILP64 is for 64-bit integer arguments.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 09:52:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262107#M30990</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-03-07T09:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262137#M30991</link>
      <description>&lt;P&gt;I do not know&amp;nbsp;which BLAS and Lapack routines are being called. I am using a 3rd party lib IpOpt&amp;nbsp;&amp;nbsp;&lt;A href="https://coin-or.github.io/Ipopt/INSTALL.html" target="_blank"&gt;https://coin-or.github.io/Ipopt/INSTALL.html&lt;/A&gt;&amp;nbsp;which says:&lt;/P&gt;
&lt;PRE class="fragment"&gt;-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm&lt;/PRE&gt;
&lt;P&gt;I suppose IpOpt is using standard&amp;nbsp;&amp;nbsp;BLAS and Lapack routines. So the above should cause the compiled IpOpt to use&amp;nbsp;BLAS and Lapack routines from MKL. But 'ldd' says it's using&amp;nbsp;BLAS and Lapack routines from system '/lib64'.&lt;/P&gt;
&lt;P&gt;I am not mixing ilp64 and lp64, I am just trying both (ilp64 always or lp64 always).&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 16:43:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262137#M30991</guid>
      <dc:creator>cjl</dc:creator>
      <dc:date>2021-03-07T16:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262138#M30992</link>
      <description>&lt;P&gt;Are you saying that for standard&amp;nbsp;blas and lapack routines,&lt;/P&gt;
&lt;PRE class="fragment"&gt;-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;will link against&amp;nbsp;blas and lapack routines in MKL?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 16:56:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262138#M30992</guid>
      <dc:creator>cjl</dc:creator>
      <dc:date>2021-03-07T16:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262166#M30993</link>
      <description>&lt;P&gt;I finally found the cause.&amp;nbsp; CoinIpOpt use another 3rd party lib, which has to be compiled with&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="fragment"&gt;-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lm&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;as well. Otherwise it is using system blas lib in /lib64.&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 20:27:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1262166#M30993</guid>
      <dc:creator>cjl</dc:creator>
      <dc:date>2021-03-07T20:27:23Z</dc:date>
    </item>
    <item>
      <title>Re:link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1263378#M31003</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad you have found the cause.&lt;/P&gt;&lt;P&gt;As your issue is resolved now, let us know if we can close the thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2021 10:47:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1263378#M31003</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2021-03-11T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re:link with blas and lapack in Intel MKL kit</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1265538#M31045</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As your issue has been resolved, we are closing this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2021 12:50:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/link-with-blas-and-lapack-in-Intel-MKL-kit/m-p/1265538#M31045</guid>
      <dc:creator>PrasanthD_intel</dc:creator>
      <dc:date>2021-03-18T12:50:13Z</dc:date>
    </item>
  </channel>
</rss>

