<?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 Joe, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-parallel-execution-confusion/m-p/965084#M16161</link>
    <description>&lt;P&gt;Hi Joe,&lt;/P&gt;

&lt;P&gt;How are you checking if the MKL functions are spawning the threadings? In some cases, Intel MKL functions may not create more threading. For example, if the high level code is threaded with Intel OpenMP, and MKL functions find there functions are in the OpenMP parallel region, MKL may not create the threading( to avoid over-threading there).&lt;BR /&gt;
	In your case, it looks the high level code is not threaded. True?&amp;nbsp; Also, the /Qparallel, and&amp;nbsp; /Qmkl:parallel are totally different. With the /Qparallel,&amp;nbsp; Intel compiler may threaded some of your source with OpenMP, and&amp;nbsp; /Qmkl:parallel is enabling the MKL internal threading.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2014 02:54:33 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2014-01-23T02:54:33Z</dc:date>
    <item>
      <title>MKL parallel execution confusion</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-parallel-execution-confusion/m-p/965082#M16159</link>
      <description>&lt;P&gt;I have some confusion regarding how MKL execute in parallel. &amp;nbsp;The problem I have is that after making some changes to a program, calls to DGBTRS, DGETRS, DGETRF and DGBTRF are no longer executed in parallel by MKL even though I am using the complier option&amp;nbsp;/Qmkl:parallel.&lt;/P&gt;

&lt;P&gt;Let me explain a little more. &amp;nbsp;I have the following code structure for solving a medium size set of ODES (~5000 differential equations).&lt;/P&gt;

&lt;P&gt;[fortran]&lt;/P&gt;

&lt;P&gt;PROGRAM&lt;BR /&gt;
	-Allocates space, etc&lt;BR /&gt;
	CALL ODE_SOLVER&lt;BR /&gt;
	-save, cleanup , etc&lt;BR /&gt;
	END PROGRAM&lt;/P&gt;

&lt;P&gt;SUBROUTINE ODE_SOLVER&lt;BR /&gt;
	CALL USER_ODES&lt;BR /&gt;
	...&lt;BR /&gt;
	CALL DGBTRF&lt;BR /&gt;
	CALL DGBTRS&lt;BR /&gt;
	CALL DGETRF&lt;BR /&gt;
	CALL DGETRS&lt;BR /&gt;
	...&lt;BR /&gt;
	RETURN&lt;BR /&gt;
	END SUBROUTINE ODE_SOLVER&lt;/P&gt;

&lt;P&gt;SUBROUTINE USER_ODES&lt;BR /&gt;
	-this is where I made some changes, in particular larger vector/matrix multiplications&lt;BR /&gt;
	-Note, however, ODE system size has not changed, so ODE_SOLVER sees the same system size&lt;BR /&gt;
	that is no change has occur that ODE_SOLVER sees.&lt;BR /&gt;
	END SUBROUTINE USER_ODES&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 1.5; font-size: 1em"&gt;[/fortran]&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;For the initial version of the program, the above LAPACK calls made within ODE_SOLVER were executed in parallel by MKL, and I got very good execution time speedup (across 8 cores). &amp;nbsp;I made some changes to USER_ODES, but I did not change the size of the ODE system, so ODE_SOLVER was effectively solving the same problem. &amp;nbsp;However, USER_ODES did allocate larger matrices to compute the ODES. &lt;/P&gt;

&lt;P&gt;The problem is, after making changes to USER_ODES, calls to the LAPACK routines stopped executing in parallel (only get serial execution). &amp;nbsp;If I use the Intel fortran compilier option&amp;nbsp;/Qparallel, all cores become busy, but performance is terrible.&lt;/P&gt;

&lt;P&gt;Sorry this is not much to go on. &amp;nbsp;My guess is that USER_ODES is generating multiple threads now, and this prevents MKL for producing parallel threads for the LAPACK calls. &amp;nbsp;Any suggestions? &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;-joe&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2014 17:35:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-parallel-execution-confusion/m-p/965082#M16159</guid>
      <dc:creator>j0e</dc:creator>
      <dc:date>2014-01-22T17:35:10Z</dc:date>
    </item>
    <item>
      <title>Sorry, disregard the above</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-parallel-execution-confusion/m-p/965083#M16160</link>
      <description>&lt;P&gt;Sorry, disregard the above post (I don't see a way of removing it). &amp;nbsp;Turns out my changes USER_ODES were more computational time consuming than I had thought. &amp;nbsp;MKL is running in parallel, it just doesn't spend much time running. &amp;nbsp; Need to optimize/parallelize my own code.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2014 23:21:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-parallel-execution-confusion/m-p/965083#M16160</guid>
      <dc:creator>j0e</dc:creator>
      <dc:date>2014-01-22T23:21:29Z</dc:date>
    </item>
    <item>
      <title>Hi Joe,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-parallel-execution-confusion/m-p/965084#M16161</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;

&lt;P&gt;How are you checking if the MKL functions are spawning the threadings? In some cases, Intel MKL functions may not create more threading. For example, if the high level code is threaded with Intel OpenMP, and MKL functions find there functions are in the OpenMP parallel region, MKL may not create the threading( to avoid over-threading there).&lt;BR /&gt;
	In your case, it looks the high level code is not threaded. True?&amp;nbsp; Also, the /Qparallel, and&amp;nbsp; /Qmkl:parallel are totally different. With the /Qparallel,&amp;nbsp; Intel compiler may threaded some of your source with OpenMP, and&amp;nbsp; /Qmkl:parallel is enabling the MKL internal threading.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2014 02:54:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-parallel-execution-confusion/m-p/965084#M16161</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2014-01-23T02:54:33Z</dc:date>
    </item>
    <item>
      <title>Hi Chao,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-parallel-execution-confusion/m-p/965085#M16162</link>
      <description>&lt;P&gt;Hi Chao,&lt;/P&gt;

&lt;P&gt;Thanks for your comment. &amp;nbsp;I was crudely checking thread creation by just following core activity. &amp;nbsp;As I noted above, MKL was generating threads as expected, it just that my modified code, which has a lot of serial execution, was taking much longer than I had anticipated. &amp;nbsp;At first appearance, I thought MKL was also executing in serial, but that was incorrect. &amp;nbsp;MKL did execute code in parallel, it just did it so quickly that I missed it at first.&lt;/P&gt;

&lt;P&gt;cheers,&lt;/P&gt;

&lt;P&gt;-joe&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2014 15:07:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-parallel-execution-confusion/m-p/965085#M16162</guid>
      <dc:creator>j0e</dc:creator>
      <dc:date>2014-01-23T15:07:05Z</dc:date>
    </item>
  </channel>
</rss>

