<?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 Random parallelism with MKL Pardiso OpenMP in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-parallelism-with-MKL-Pardiso-OpenMP/m-p/1130652#M25569</link>
    <description>&lt;P&gt;When linking the latest version of MKL with my c++ program with OpenMP and running the program multiple times, it sometimes parallelizes and sometimes it doesn't. I was wondering if someone has noticed something like this before?&lt;/P&gt;

&lt;P&gt;Couple of notes:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;the program uses both TBB (for parallelism in the rest of the code) and OpenMP for MKL. There are no nested MKL calls&lt;/LI&gt;
	&lt;LI&gt;if TBB is used for both, it works but pardiso is only partially parallelized in TBB and is thus significantly slower&lt;/LI&gt;
	&lt;LI&gt;different parallelism is observed without recompiling&amp;nbsp;
		&lt;OL&gt;
			&lt;LI&gt;sometimes one thread and sometimes the proper amount&lt;/LI&gt;
		&lt;/OL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;the TBB library used is the one provided with MKL&lt;/LI&gt;
	&lt;LI&gt;MKL version is 2018 U1&lt;/LI&gt;
	&lt;LI&gt;the OS is windows 10&lt;/LI&gt;
	&lt;LI&gt;I have tried using mkl_set_num_threads, omp_set_num_threads, omp_set_dynamic(false) and mkl_set_dynamic(false). I have also tried setting the blocktime to no avail&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Hopefully someone has an answer to this problem&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Thomas Cool&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2018 23:49:14 GMT</pubDate>
    <dc:creator>cool__thomas</dc:creator>
    <dc:date>2018-01-29T23:49:14Z</dc:date>
    <item>
      <title>Random parallelism with MKL Pardiso OpenMP</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-parallelism-with-MKL-Pardiso-OpenMP/m-p/1130652#M25569</link>
      <description>&lt;P&gt;When linking the latest version of MKL with my c++ program with OpenMP and running the program multiple times, it sometimes parallelizes and sometimes it doesn't. I was wondering if someone has noticed something like this before?&lt;/P&gt;

&lt;P&gt;Couple of notes:&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;the program uses both TBB (for parallelism in the rest of the code) and OpenMP for MKL. There are no nested MKL calls&lt;/LI&gt;
	&lt;LI&gt;if TBB is used for both, it works but pardiso is only partially parallelized in TBB and is thus significantly slower&lt;/LI&gt;
	&lt;LI&gt;different parallelism is observed without recompiling&amp;nbsp;
		&lt;OL&gt;
			&lt;LI&gt;sometimes one thread and sometimes the proper amount&lt;/LI&gt;
		&lt;/OL&gt;
	&lt;/LI&gt;
	&lt;LI&gt;the TBB library used is the one provided with MKL&lt;/LI&gt;
	&lt;LI&gt;MKL version is 2018 U1&lt;/LI&gt;
	&lt;LI&gt;the OS is windows 10&lt;/LI&gt;
	&lt;LI&gt;I have tried using mkl_set_num_threads, omp_set_num_threads, omp_set_dynamic(false) and mkl_set_dynamic(false). I have also tried setting the blocktime to no avail&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Hopefully someone has an answer to this problem&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Thomas Cool&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 23:49:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-parallelism-with-MKL-Pardiso-OpenMP/m-p/1130652#M25569</guid>
      <dc:creator>cool__thomas</dc:creator>
      <dc:date>2018-01-29T23:49:14Z</dc:date>
    </item>
    <item>
      <title>Could you please clarify the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-parallelism-with-MKL-Pardiso-OpenMP/m-p/1130653#M25570</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Could you please clarify the following&lt;/SPAN&gt;:&lt;/P&gt;

&lt;P&gt;How do you link this application? i mean do you link with&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;mkl_tbb_thread or mkl_intel_thread libs?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;What is the typical problem size you solve?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;what does this mean:&amp;nbsp; &amp;gt;&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;if TBB &lt;STRONG&gt;is used for both&lt;/STRONG&gt;, it works but pardiso is only partially parallelized in TBB and is thus significantly slower&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 04:36:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-parallelism-with-MKL-Pardiso-OpenMP/m-p/1130653#M25570</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-02-01T04:36:21Z</dc:date>
    </item>
    <item>
      <title>Sorry for not being clear in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-parallelism-with-MKL-Pardiso-OpenMP/m-p/1130654#M25571</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Sorry for not being clear in the original message.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If the program is linked with mkl_tbb_thread, mkl runs in parallel but pardiso does not seem to be fully converted to support it yet.&lt;/P&gt;

&lt;P&gt;If the program is linked with mkl_intel_thread, (in addition to libiomp5.lib) mkl routines seem to sometimes run in parallel and sometimes not.&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;​This behavior change can be observed WITHOUT recompiling which is the confusing part&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;It should be noted that in both cases the program is also linked to tbb.lib since the rest of the program needs it&lt;/P&gt;

&lt;P&gt;Problems are sparse but can vary from 10K*10K to 1.5M*1.5M&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;T.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 21:18:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Random-parallelism-with-MKL-Pardiso-OpenMP/m-p/1130654#M25571</guid>
      <dc:creator>cool__thomas</dc:creator>
      <dc:date>2018-02-01T21:18:45Z</dc:date>
    </item>
  </channel>
</rss>

