<?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: MKL DFT: multi-threading by default? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879563#M9365</link>
    <description>Section 6-8 of the user's guide just answered this question. This is cool, except if multiple threads increase peak memory usage, causing the system to bog down!&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;FONT face="Courier New" size="1"&gt;The value of MKL_DYNAMIC is by default set to TRUE, regardless of OMP_DYNAMIC, whose &lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;default value may be FALSE. MKL_DYNAMIC being TRUE means that Intel MKL will always try to pick what it considers the best number of threads, up to the maximum specified by the user.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 12 Dec 2007 06:48:19 GMT</pubDate>
    <dc:creator>mpbro</dc:creator>
    <dc:date>2007-12-12T06:48:19Z</dc:date>
    <item>
      <title>MKL DFT: multi-threading by default?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879562#M9364</link>
      <description>As I mentioned in another post, I'm running the FFTW wrappers for MKL's DFT. I tested a 500x500x500 real-to-complex-even DFT by running both the native FFTW DFT and the MKL DFT (forward and inverse). In FFTW, I was forcing multi-threading on my 4-CPU node by invoking sfftw_init_threads() and sfftw_plan_with_nthreads(). In MKL, I noticed that by default, it seems to use 4 threads. This is not a complaint--that's a pretty smart code. But could I confirm that this is indeed the case?&lt;BR /&gt;&lt;BR /&gt;FWIW, on this problem, the 4-thread FFTW result was about 2x slower than the 4-thread MKL result. Very impressive!&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2007 03:25:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879562#M9364</guid>
      <dc:creator>mpbro</dc:creator>
      <dc:date>2007-12-12T03:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT: multi-threading by default?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879563#M9365</link>
      <description>Section 6-8 of the user's guide just answered this question. This is cool, except if multiple threads increase peak memory usage, causing the system to bog down!&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;FONT face="Courier New" size="1"&gt;The value of MKL_DYNAMIC is by default set to TRUE, regardless of OMP_DYNAMIC, whose &lt;/FONT&gt;&lt;FONT face="Courier New" size="1"&gt;default value may be FALSE. MKL_DYNAMIC being TRUE means that Intel MKL will always try to pick what it considers the best number of threads, up to the maximum specified by the user.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 12 Dec 2007 06:48:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879563#M9365</guid>
      <dc:creator>mpbro</dc:creator>
      <dc:date>2007-12-12T06:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT: multi-threading by default?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879564#M9366</link>
      <description>I guess you may be using a fairly old MKL. In MKL 9 there were serial (non-threaded) libraries as well as the primary threaded ones. In MKL 10 you choose threaded by -lmkl_intel_thread, or non-threaded by -lmkl_sequential.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2007 14:01:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879564#M9366</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-12-12T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT: multi-threading by default?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879565#M9367</link>
      <description>&lt;P&gt;See Fig. 2 in&lt;/P&gt;
&lt;P&gt;&lt;A href="http://softwaredispatch.intel.com/?pin=ON29EE32&amp;amp;xid=0A2&amp;amp;t=3&amp;amp;lid=2114"&gt;&lt;FONT color="#0860a8"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://softwaredispatch.intel.com/?pin=ON29EE32&amp;amp;xid=0A2&amp;amp;t=3&amp;amp;lid=2114" target="_blank"&gt;http://softwaredispatch.intel.com/?pin=ON29EE32&amp;amp;xid=0A2&amp;amp;t=3&amp;amp;lid=2114&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2007 14:51:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879565#M9367</guid>
      <dc:creator>g_f_thomas</dc:creator>
      <dc:date>2007-12-12T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT: multi-threading by default?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879566#M9368</link>
      <description>Gerry,&lt;BR /&gt;&lt;BR /&gt;Thanks for the link--the results are impressive.&lt;BR /&gt;&lt;BR /&gt;So far, I've found the following for a large (500x500x500) DFT transform pair:&lt;BR /&gt;&lt;BR /&gt;Run time: &lt;BR /&gt;FFTW 1 thread/FFTW 4 thread ~ 3.8x&lt;BR /&gt;FFTW 4 thread/MKL 4 thread ~ 2x&lt;BR /&gt;MKL 1 thread/MKL 4 thread ~ 2.5x&lt;BR /&gt;&lt;BR /&gt;So for this 3D problem, FFTW multi-threaded scales very nicely. However, the factor of 2 between FFTW and MKL is incredibly tantalizing for me. If I could just lick this memory problem...&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2007 15:19:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879566#M9368</guid>
      <dc:creator>mpbro</dc:creator>
      <dc:date>2007-12-12T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT: multi-threading by default?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879567#M9369</link>
      <description>Hi Tim,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response. I'm actually using MKL v10, but I am linking to -lmkl_intel_thread.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Dec 2007 15:20:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-multi-threading-by-default/m-p/879567#M9369</guid>
      <dc:creator>mpbro</dc:creator>
      <dc:date>2007-12-12T15:20:47Z</dc:date>
    </item>
  </channel>
</rss>

