<?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 Hi Simon, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-issue-in-MKL-LAPACKE-interface-when-using-LAPACK-ROW/m-p/1131628#M25646</link>
    <description>&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;I am glad that I was able to help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 05:13:29 GMT</pubDate>
    <dc:creator>Khang_N_Intel</dc:creator>
    <dc:date>2019-07-23T05:13:29Z</dc:date>
    <item>
      <title>Possible issue in MKL LAPACKE interface when using LAPACK_ROW_MAJOR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-issue-in-MKL-LAPACKE-interface-when-using-LAPACK-ROW/m-p/1131625#M25643</link>
      <description>&lt;P&gt;MKL provided by Intel parallel studio xe 2019.3.&lt;/P&gt;&lt;P&gt;The minimal reproducing code is below:&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include "mkl_lapacke.h"

#define N 2

int main(){
double m&lt;N&gt;;
MKL_INT n1=N, n2=N;
MKL_INT info;
double a[N*N] = {0, 1,
                 1, 0};
info = LAPACKE_dsyevd(LAPACK_ROW_MAJOR, 'V','U', n1, a, n2, m);
printf("the eigenvalue is: %f,%f\n", m[0],m[1]);
printf("the first eigenvector is: %f,%f\n",a[0],a[2]);
printf("the second eigenvector is: %f,%f\n",a[1],a[3]);
return 0;
}&lt;/N&gt;&lt;/PRE&gt;

&lt;P&gt;The returned eigenvectors is somehow wrong when LAPACK_ROW_MAJOR is specified, however, everything is fine when changing to LAPACK_COL_MAJOR.&lt;/P&gt;
&lt;P&gt;The stdout with export MKL_VERBOSE=1 is shown below:&lt;/P&gt;
&lt;P&gt;1. COL_MAJOR (correct results)&lt;/P&gt;
&lt;P&gt;MKL_VERBOSE Intel(R) MKL 2019.0 Update 3 Product build 20190125 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 512 (Intel(R) AVX-512) enabled processors, Lnx 2.20GHz lp64 intel_thread&lt;BR /&gt;MKL_VERBOSE DSYEVD(V,U,2,0x7ffee9463680,2,0x7ffee94636a0,0x7ffee9463620,-1,0x7ffee9463628,-1,0) 27.85ms CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:28&lt;BR /&gt;MKL_VERBOSE DSYEVD(V,U,2,0x7ffee9463680,2,0x7ffee94636a0,0x22ce000,21,0x22cdf00,13,0) 243.59us CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:28&lt;BR /&gt;the eigenvalue is: -1.000000,1.000000&lt;BR /&gt;the first eigenvector is: -0.707107,0.707107&lt;BR /&gt;the second eigenvector is: 0.707107,0.707107&lt;/P&gt;
&lt;P&gt;2. ROW_MAJOR (wrong results)&lt;/P&gt;
&lt;P&gt;MKL_VERBOSE Intel(R) MKL 2019.0 Update 3 Product build 20190125 for Intel(R) 64 architecture Intel(R) Advanced Vector Extensions 512 (Intel(R) AVX-512) enabled processors, Lnx 2.20GHz lp64 intel_thread&lt;BR /&gt;MKL_VERBOSE DSYEVD(V,U,2,0x7ffd6a6a3000,2,0x7ffd6a6a3020,0x7ffd6a6a2fa0,-1,0x7ffd6a6a2fa8,-1,0) 27.70ms CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:28&lt;BR /&gt;MKL_VERBOSE DSYEVD(V,U,2,0xd26100,2,0x7ffd6a6a3020,0xd26000,21,0xd25f00,13,0) 247.73us CNR:OFF Dyn:1 FastMM:1 TID:0 &amp;nbsp;NThr:28&lt;BR /&gt;the eigenvalue is: -1.000000,1.000000&lt;BR /&gt;the first eigenvector is: -0.707107,1.000000&lt;BR /&gt;the second eigenvector is: 0.707107,0.707107&lt;/P&gt;
&lt;P&gt;Pay attention to the difference on the first eigenvector.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 02:32:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-issue-in-MKL-LAPACKE-interface-when-using-LAPACK-ROW/m-p/1131625#M25643</guid>
      <dc:creator>Zhang__Simon</dc:creator>
      <dc:date>2019-07-22T02:32:05Z</dc:date>
    </item>
    <item>
      <title>Hi Simon,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-issue-in-MKL-LAPACKE-interface-when-using-LAPACK-ROW/m-p/1131626#M25644</link>
      <description>&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Please upgrade to Intel(R) PSXE 2019 Update 4.&amp;nbsp; That would fix the issue.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to reproduce the issue when using the 2019 Update 3 version.&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 21:45:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-issue-in-MKL-LAPACKE-interface-when-using-LAPACK-ROW/m-p/1131626#M25644</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2019-07-22T21:45:27Z</dc:date>
    </item>
    <item>
      <title>Quote:Nguyen, Khang T (Intel)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-issue-in-MKL-LAPACKE-interface-when-using-LAPACK-ROW/m-p/1131627#M25645</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Nguyen, Khang T (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Please upgrade to Intel(R) PSXE 2019 Update 4.&amp;nbsp; That would fix the issue.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to reproduce the issue when using the 2019 Update 3 version.&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your advice. Update 4 indeed fix this problem.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 03:19:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-issue-in-MKL-LAPACKE-interface-when-using-LAPACK-ROW/m-p/1131627#M25645</guid>
      <dc:creator>zhang__simon1</dc:creator>
      <dc:date>2019-07-23T03:19:07Z</dc:date>
    </item>
    <item>
      <title>Hi Simon,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-issue-in-MKL-LAPACKE-interface-when-using-LAPACK-ROW/m-p/1131628#M25646</link>
      <description>&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;I am glad that I was able to help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 05:13:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-issue-in-MKL-LAPACKE-interface-when-using-LAPACK-ROW/m-p/1131628#M25646</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2019-07-23T05:13:29Z</dc:date>
    </item>
  </channel>
</rss>

