<?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 here is the output when in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-LU-factorization-result-between-libmkl-intel-ilp64-a/m-p/1126828#M25322</link>
    <description>&lt;P&gt;here is the output when linking with ILP64 API and compiled with&amp;nbsp;&amp;nbsp;/DMKL_ILP64 option.&lt;/P&gt;&lt;P&gt;&amp;gt;_2.exe&lt;BR /&gt;MKL_VERBOSE Intel(R) MKL 2019.0 Update 4 Product build 20190411 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Win 2.60GHz cdecl intel_thread&lt;BR /&gt;MKL_VERBOSE DGETRF(21,21,00000052E531EDF0,21,00000052E531ED30,0) 1.36ms CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;BR /&gt;Info is 0&lt;BR /&gt;MKL_VERBOSE DGETRI(21,00000052E531EDF0,21,00000052E531ED30,00000052E531ECB0,-1,0) 54.61us CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;BR /&gt;MKL_VERBOSE DGETRI(21,00000052E531EDF0,21,00000052E531ED30,000001CCD0FC8280,1344,0) 238.55us CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;BR /&gt;Info1 is 0&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 06:26:29 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2019-07-29T06:26:29Z</dc:date>
    <item>
      <title>Different LU factorization result between libmkl_intel_ilp64.a and libmkl_intel_lp64.a</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-LU-factorization-result-between-libmkl-intel-ilp64-a/m-p/1126826#M25320</link>
      <description>&lt;P&gt;I am a novice in the field of Intel Math Kernel Library. However, when I tried to use the LU factorization function from LAPACK by compiling different libraries, I got different results as the following.&lt;/P&gt;&lt;P&gt;My C++ code is as simple as the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include &amp;lt;mkl.h&amp;gt;&lt;BR /&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include &amp;lt;ctime&amp;gt; &amp;nbsp; &amp;nbsp;// For time()&lt;BR /&gt;#include &amp;lt;cstdlib&amp;gt;&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; srand(time(0));&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; double a[441];&lt;BR /&gt;&amp;nbsp; &amp;nbsp; for (int i = 0; i &amp;lt; 441; i++)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a&lt;I&gt; = (double) rand() / RAND_MAX;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; int C = 21;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lapack_int m1 = C;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lapack_int n1 = C;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lapack_int lda1 = C;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lapack_int ipiv&lt;C&gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; lapack_int info1 = LAPACKE_dgetrf(LAPACK_COL_MAJOR, m1, n1, a, lda1, ipiv);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; std::cout &amp;lt;&amp;lt; "Info1 is " &amp;lt;&amp;lt; info1 &amp;lt;&amp;lt; std::endl;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; info1 = LAPACKE_dgetri(LAPACK_COL_MAJOR, m1, a, lda1, ipiv);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; std::cout &amp;lt;&amp;lt; "Info1 is " &amp;lt;&amp;lt; info1 &amp;lt;&amp;lt; std::endl;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I could get no error&amp;nbsp;by linking library "libmkl_intel_lp64.a", but I got a "Segmentation fault (core dumped)" by linking library&amp;nbsp;"libmkl_intel_ilp64.a". I have checked the intel official document which explains the difference between the two&amp;nbsp;libraries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are mainly two difference mentioned in that document:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1. Support large data arrays (with more than 231-1 elements)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2.Enable compiling your Fortran code with the&amp;nbsp;-i8&amp;nbsp;compiler option&lt;/P&gt;&lt;P&gt;I do not understand why I even got error by using&amp;nbsp;libmkl_intel_ilp64.a. What's more, sometimes I also meet an error "tack smashing detected" by linking library&amp;nbsp;"libmkl_intel_lp64.a" but&amp;nbsp;"libmkl_intel_ilp64.a" is OK. Could you please help me figure it out? Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 14:03:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-LU-factorization-result-between-libmkl-intel-ilp64-a/m-p/1126826#M25320</guid>
      <dc:creator>zhang__Shunkang</dc:creator>
      <dc:date>2019-07-12T14:03:29Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-LU-factorization-result-between-libmkl-intel-ilp64-a/m-p/1126827#M25321</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please add "-DMKL_ILP64" option to link library "libmkl_intel_ilp64.a" in your make file. It should fix your problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Ruqiu&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 08:40:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-LU-factorization-result-between-libmkl-intel-ilp64-a/m-p/1126827#M25321</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2019-07-24T08:40:02Z</dc:date>
    </item>
    <item>
      <title>here is the output when</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-LU-factorization-result-between-libmkl-intel-ilp64-a/m-p/1126828#M25322</link>
      <description>&lt;P&gt;here is the output when linking with ILP64 API and compiled with&amp;nbsp;&amp;nbsp;/DMKL_ILP64 option.&lt;/P&gt;&lt;P&gt;&amp;gt;_2.exe&lt;BR /&gt;MKL_VERBOSE Intel(R) MKL 2019.0 Update 4 Product build 20190411 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Win 2.60GHz cdecl intel_thread&lt;BR /&gt;MKL_VERBOSE DGETRF(21,21,00000052E531EDF0,21,00000052E531ED30,0) 1.36ms CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;BR /&gt;Info is 0&lt;BR /&gt;MKL_VERBOSE DGETRI(21,00000052E531EDF0,21,00000052E531ED30,00000052E531ECB0,-1,0) 54.61us CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;BR /&gt;MKL_VERBOSE DGETRI(21,00000052E531EDF0,21,00000052E531ED30,000001CCD0FC8280,1344,0) 238.55us CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:2&lt;BR /&gt;Info1 is 0&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 06:26:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Different-LU-factorization-result-between-libmkl-intel-ilp64-a/m-p/1126828#M25322</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-07-29T06:26:29Z</dc:date>
    </item>
  </channel>
</rss>

