<?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: Pardiso with OpenMP problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1393016#M33286</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could reproduce the issue from my end when enabling /Qopenmp in the language field of the settings page.&lt;/P&gt;
&lt;P&gt;Since we already set the MKL to run in parallel mode (Under configuration properties &amp;gt; Fortran &amp;gt; Libraries &amp;gt; Use MKL &amp;gt; /Qmkl: parallel), I tried disabling the Generate Parallel Code (/Qopenmp) option because&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the MKL manual says,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"In the parallel mode, Intel® oneAPI Math Kernel Library utilizes multiple processor cores available on your system (uses the number of OpenMP threads equal to the number of physical cores on the system), uses the OpenMP*or Intel TBB threading technology, and requires a proper threading runtime library (RTL) to be linked with your application and the threading RTLs are provided by your compiler."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After disabling the option, I could see that output as shown in the below screenshot with the total count of threads being used in the code which shows that it is working in parallel mode as well.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VidyalathaB_Intel_0-1655383735562.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/30617i3E88811D65E86D93/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VidyalathaB_Intel_0-1655383735562.png" alt="VidyalathaB_Intel_0-1655383735562.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the below link and do let me know if I miss anything.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-onemkl/linking-in-detail/linking-with-threading-libraries.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-onemkl/linking-in-detail/linking-with-threading-libraries.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 12:53:20 GMT</pubDate>
    <dc:creator>VidyalathaB_Intel</dc:creator>
    <dc:date>2022-06-16T12:53:20Z</dc:date>
    <item>
      <title>Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1392501#M33277</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;According to the manual of pardiso (&lt;A href="http://cali2.unilim.fr/intel-xe/mkl/mklman/GUID-264E311E-ACED-4D56-AC31-E9D3B11D1CBF.htm" target="_self"&gt;link&lt;/A&gt;)&amp;nbsp; setting iparm(2) = 3, the solver runs in parallel using the maximum number of threads.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case the pardiso solver crashes with the following message&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;Intel MKL INTERNAL ERROR: Condition -1 detected in function MKL_DCSRCOO.&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;The error code is: -2 which stands for "&lt;SPAN&gt;not enough memory", which is strange in this case since&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;if I just change the visual studio project properties from&amp;nbsp;Generate Parallel Code (/Qopenmp) to&amp;nbsp;Generate Sequential Code (/Qopenmp-stubs) in Language (process omp directives) then it works fine. But then it works sequential not parallel.&lt;/P&gt;
&lt;P&gt;Any help how to use pardiso with openmp is appreciated.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 01:24:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1392501#M33277</guid>
      <dc:creator>zidanea</dc:creator>
      <dc:date>2022-06-15T01:24:09Z</dc:date>
    </item>
    <item>
      <title>Re:Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1392647#M33281</link>
      <description>&lt;P&gt;Hi,&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;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know the MKL version being used in this case? Also please provide us with a sample reproducer (maybe you can attach your VS project file here) so that we can work on it from our end.&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, 15 Jun 2022 10:57:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1392647#M33281</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-06-15T10:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1392670#M33282</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm using the mkl from oneapi.&lt;/P&gt;
&lt;P&gt;Please see attached the VS project.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you make the process omp directives to Generate Parallel Code (/Qopenmp) it doesn't work, if you make it sequential it works.&lt;/P&gt;
&lt;P&gt;Hope you can help with this!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 13:09:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1392670#M33282</guid>
      <dc:creator>zidanea</dc:creator>
      <dc:date>2022-06-15T13:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1393016#M33286</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could reproduce the issue from my end when enabling /Qopenmp in the language field of the settings page.&lt;/P&gt;
&lt;P&gt;Since we already set the MKL to run in parallel mode (Under configuration properties &amp;gt; Fortran &amp;gt; Libraries &amp;gt; Use MKL &amp;gt; /Qmkl: parallel), I tried disabling the Generate Parallel Code (/Qopenmp) option because&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the MKL manual says,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"In the parallel mode, Intel® oneAPI Math Kernel Library utilizes multiple processor cores available on your system (uses the number of OpenMP threads equal to the number of physical cores on the system), uses the OpenMP*or Intel TBB threading technology, and requires a proper threading runtime library (RTL) to be linked with your application and the threading RTLs are provided by your compiler."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After disabling the option, I could see that output as shown in the below screenshot with the total count of threads being used in the code which shows that it is working in parallel mode as well.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VidyalathaB_Intel_0-1655383735562.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/30617i3E88811D65E86D93/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VidyalathaB_Intel_0-1655383735562.png" alt="VidyalathaB_Intel_0-1655383735562.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the below link and do let me know if I miss anything.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-onemkl/linking-in-detail/linking-with-threading-libraries.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-onemkl/linking-in-detail/linking-with-threading-libraries.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 12:53:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1393016#M33286</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-06-16T12:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1393022#M33287</link>
      <description>&lt;P&gt;Thanks Vidya, I followed your instructions, and I used a loop of 1 M iterations of the two calls to the solver to see if what we're doing here is actually taking advantage of the parallel process.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the result is that sequential is more efficient? Are we really doing things right here ?&lt;/P&gt;
&lt;P&gt;Here's the results:&lt;/P&gt;
&lt;P&gt;Process OpenMP directives: Disable&lt;BR /&gt;Threads&amp;gt;&amp;gt; 8&lt;BR /&gt;Simulation time(sec): 295.1770&lt;BR /&gt;&lt;BR /&gt;Process OpenMP directives: Generate Sequential Code (/Qopenmp-stubs): &lt;BR /&gt;Threads&amp;gt;&amp;gt; 1&lt;BR /&gt;Simulation time(sec): 293.5310&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 13:25:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1393022#M33287</guid>
      <dc:creator>zidanea</dc:creator>
      <dc:date>2022-06-16T13:25:54Z</dc:date>
    </item>
    <item>
      <title>Re:Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1393056#M33288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting back to us.&lt;/P&gt;&lt;P&gt;Could you please let me know how did you measure/calculate the simulation time here (maybe you can give me the steps you are following)?&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>Thu, 16 Jun 2022 15:10:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1393056#M33288</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-06-16T15:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1393060#M33289</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I used the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALL system_clock(count_rate=rate)&lt;BR /&gt;call SYSTEM_CLOCK(timein)&lt;/P&gt;
&lt;P&gt;!&lt;BR /&gt;do i = 1,1000000&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; write(*,*)'Solve once!'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; call LINEAR_SOLVER_PARDISO&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; write(*,*)'Solve twice!'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; call LINEAR_SOLVER_PARDISO&lt;BR /&gt;enddo&lt;BR /&gt;call SYSTEM_CLOCK(timeout)&lt;/P&gt;
&lt;P&gt;!&lt;BR /&gt;write(*,*)'Simulation time(sec):',real(timeout-timein)/real(rate)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 15:18:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1393060#M33289</guid>
      <dc:creator>zidanea</dc:creator>
      <dc:date>2022-06-16T15:18:16Z</dc:date>
    </item>
    <item>
      <title>Re:Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1394421#M33308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the details.&lt;/P&gt;&lt;P&gt;We are working on your issue. we will get back to you soon.&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, 22 Jun 2022 06:35:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1394421#M33308</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-06-22T06:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1394517#M33313</link>
      <description>&lt;P&gt;Thank you, I'll be waiting!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 14:06:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1394517#M33313</guid>
      <dc:creator>zidanea</dc:creator>
      <dc:date>2022-06-22T14:06:03Z</dc:date>
    </item>
    <item>
      <title>Re:Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1394572#M33315</link>
      <description>&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;I will do some investigation and will get back to you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jun 2022 17:44:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1394572#M33315</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-06-22T17:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1394573#M33316</link>
      <description>&lt;P&gt;Thanks Khang!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 17:46:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1394573#M33316</guid>
      <dc:creator>zidanea</dc:creator>
      <dc:date>2022-06-22T17:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Pardiso with OpenMP problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1402227#M33423</link>
      <description>&lt;P&gt;Hi Khang,&lt;/P&gt;
&lt;P&gt;Any updates so far ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Z&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 12:45:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Pardiso-with-OpenMP-problem/m-p/1402227#M33423</guid>
      <dc:creator>zidanea</dc:creator>
      <dc:date>2022-07-21T12:45:23Z</dc:date>
    </item>
  </channel>
</rss>

