<?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:The unexpected result when using Pardiso solver to solve linear equations in parallel (OpenMP) in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-unexpected-result-when-using-Pardiso-solver-to-solve-linear/m-p/1413734#M33638</link>
    <description>&lt;P&gt;Hi Ewigstern,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;Could you please provide us with the following details so that we could try reproducing the issue from our end?&lt;/P&gt;&lt;P&gt;&amp;gt; MKL Version being used&lt;/P&gt;&lt;P&gt;&amp;gt; Complete sample reproducer code and steps to reproduce it (commands to compile and run)&lt;/P&gt;&lt;P&gt;&amp;gt; OS environment details&lt;/P&gt;&lt;P&gt;&amp;gt; Expected results and observed results (i.e. the results that you are getting while running in parallel mode)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 09 Sep 2022 11:21:49 GMT</pubDate>
    <dc:creator>VidyalathaB_Intel</dc:creator>
    <dc:date>2022-09-09T11:21:49Z</dc:date>
    <item>
      <title>The unexpected result when using Pardiso solver to solve linear equations in parallel (OpenMP)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-unexpected-result-when-using-Pardiso-solver-to-solve-linear/m-p/1413520#M33634</link>
      <description>&lt;DIV class="ccvoYb"&gt;
&lt;DIV class="AxqVh"&gt;
&lt;DIV class="OPPzxe"&gt;
&lt;DIV class="dePhmb" aria-live="polite"&gt;
&lt;DIV class="eyKpYb" data-language="en" data-original-language="zh-CN" data-result-index="0"&gt;
&lt;DIV class="J0lOec"&gt;
&lt;DIV class="ccvoYb"&gt;
&lt;DIV class="AxqVh"&gt;
&lt;DIV class="OPPzxe"&gt;
&lt;DIV class="dePhmb" aria-live="polite"&gt;
&lt;DIV class="eyKpYb" data-language="en" data-original-language="zh-CN" data-result-index="0"&gt;
&lt;DIV class="J0lOec"&gt;
&lt;DIV&gt;&lt;SPAN&gt;Dear Intel Team,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;I recently found a strange phenomenon&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;when invoking the pardiso solver to solve a linear&amp;nbsp;equation, the details are as follows:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;For a linear equation with multiple right-hand sides: AX=B, where A is an nxn matrix, B is an nxm matrix, and m is the number of right-hand sides.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ewigstern_0-1662607960389.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33188i8BE30A352BCACAD7/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Ewigstern_0-1662607960389.png" alt="Ewigstern_0-1662607960389.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;When I solve the equation in the following way (pseudocode), the result is correct.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;do i=1,m&lt;BR /&gt;&amp;nbsp; &amp;nbsp;call pardiso(A,B(i),X(i))&lt;BR /&gt;end do&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;correct result:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ewigstern_1-1662608075861.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33189i3F4FF26CA2B5A169/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Ewigstern_1-1662608075861.png" alt="Ewigstern_1-1662608075861.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;However, when I solve the equation in the following way (pseudocode), all or some of the threads compute the same result, i.e. all or some of the columns of X are the same. Notice:&lt;BR /&gt;1. I have confirmed that the B(i) entered in each loop is correct.&lt;BR /&gt;2. These same calculation results may be the correct result of a certain thread, or may be the initial 0 value.&lt;BR /&gt;3. In rare cases, all threads can get different calculation results, and the results are correct.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;!$OMP Parallel Do Num_Threads(p)&lt;BR /&gt;do i=1,m&lt;BR /&gt;&amp;nbsp; &amp;nbsp;call pardiso(A,B(i),X(i))&lt;BR /&gt;end do&lt;BR /&gt;!$OMP end Parallel Do&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;wrong result:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ewigstern_2-1662608129536.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33190iF3E8E0FFC3FB63CB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Ewigstern_2-1662608129536.png" alt="Ewigstern_2-1662608129536.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Such a phenomenon is very strange, and it confuses me. I would like to know what is causing this? Is it not possible to call the pardiso solver in the OpenMP way? Or do I need to adjust the input parameters of the pardiso solver when calling the pardiso solver in OpenMP?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Best wishes,&lt;BR /&gt;Ewigstern&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="kGmWO"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Sep 2022 12:41:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-unexpected-result-when-using-Pardiso-solver-to-solve-linear/m-p/1413520#M33634</guid>
      <dc:creator>Ewigstern</dc:creator>
      <dc:date>2022-09-08T12:41:50Z</dc:date>
    </item>
    <item>
      <title>Re:The unexpected result when using Pardiso solver to solve linear equations in parallel (OpenMP)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-unexpected-result-when-using-Pardiso-solver-to-solve-linear/m-p/1413734#M33638</link>
      <description>&lt;P&gt;Hi Ewigstern,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;Could you please provide us with the following details so that we could try reproducing the issue from our end?&lt;/P&gt;&lt;P&gt;&amp;gt; MKL Version being used&lt;/P&gt;&lt;P&gt;&amp;gt; Complete sample reproducer code and steps to reproduce it (commands to compile and run)&lt;/P&gt;&lt;P&gt;&amp;gt; OS environment details&lt;/P&gt;&lt;P&gt;&amp;gt; Expected results and observed results (i.e. the results that you are getting while running in parallel mode)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Sep 2022 11:21:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-unexpected-result-when-using-Pardiso-solver-to-solve-linear/m-p/1413734#M33638</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-09-09T11:21:49Z</dc:date>
    </item>
    <item>
      <title>Re:The unexpected result when using Pardiso solver to solve linear equations in parallel (OpenMP)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-unexpected-result-when-using-Pardiso-solver-to-solve-linear/m-p/1414690#M33652</link>
      <description>&lt;P&gt;Hi Ewigstern,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since this is a duplicate thread of &lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-wrong-result-when-using-Pardiso-solver-to-solve-linear/td-p/1414332" target="_blank"&gt;https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-wrong-result-when-using-Pardiso-solver-to-solve-linear/td-p/1414332&lt;/A&gt;, we will no longer monitor this thread. We will continue addressing this issue in the other thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Sep 2022 13:07:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/The-unexpected-result-when-using-Pardiso-solver-to-solve-linear/m-p/1414690#M33652</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-09-14T13:07:22Z</dc:date>
    </item>
  </channel>
</rss>

