<?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 I shall add a little bit more in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-generates-wrong-result-for-a-small-test-matrix/m-p/1173818#M28741</link>
    <description>&lt;P&gt;I shall add a little bit more illustration on what I'm doing. I just generate a random nonsingular matrix(H) and a random column(C), then find the the solution x via H^(-1) * C. Then H matrix is transformed into CSR form and passed as parameter to pardiso. All the above embodied in the code.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2017 14:17:55 GMT</pubDate>
    <dc:creator>Izzy_W_</dc:creator>
    <dc:date>2017-08-28T14:17:55Z</dc:date>
    <item>
      <title>Pardiso generates wrong result for a small test matrix</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-generates-wrong-result-for-a-small-test-matrix/m-p/1173817#M28740</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I've written a test program to get familiar with the pardiso. However I find that comparing with the result from Eigen the pardiso spits out totally incorrect answer. I have totally no idea what went wrong and please help. Code is attached. &amp;nbsp;The compile command I used is also listed as:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;icpc -I ~/Lib/Eigen -std=c++11 -mkl=parallel -qopenmp -O3 -xCORE-AVX2 PTEST.cpp -o PardisoTest&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Izzy&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 04:10:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-generates-wrong-result-for-a-small-test-matrix/m-p/1173817#M28740</guid>
      <dc:creator>Izzy_W_</dc:creator>
      <dc:date>2017-08-28T04:10:41Z</dc:date>
    </item>
    <item>
      <title>I shall add a little bit more</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-generates-wrong-result-for-a-small-test-matrix/m-p/1173818#M28741</link>
      <description>&lt;P&gt;I shall add a little bit more illustration on what I'm doing. I just generate a random nonsingular matrix(H) and a random column(C), then find the the solution x via H^(-1) * C. Then H matrix is transformed into CSR form and passed as parameter to pardiso. All the above embodied in the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:17:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-generates-wrong-result-for-a-small-test-matrix/m-p/1173818#M28741</guid>
      <dc:creator>Izzy_W_</dc:creator>
      <dc:date>2017-08-28T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-generates-wrong-result-for-a-small-test-matrix/m-p/1173819#M28742</link>
      <description>&lt;P style="font-size: 13.008px;"&gt;Hi,&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;The problem probably caused by option for generating multi-thread code, if you remove -qopenmp option during compiling, the result would be same. When you use -qopenmp, all variables will be allocated on&amp;nbsp;stack by default, if there's&lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp;uninitialized array elements in your program,&amp;nbsp;&lt;/SPAN&gt;the result would be different. I noticed there are some problems of your code.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;If you would like to use -qopenmp option, please modify your program:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;...
//double B[10]={0}; change to
double B[10];
//double X[10]={0};
double X[10];
//int iparm[64]={0};
MKL_INT iparm[64];
//int pt[64]={0}; 
void *pt[64];
//int perm[10]={0};
MKL_INT perm[10];
...&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 10:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-generates-wrong-result-for-a-small-test-matrix/m-p/1173819#M28742</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-08-30T10:16:00Z</dc:date>
    </item>
  </channel>
</rss>

