<?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 DftiComputeForward and DftiComputeBAckward are thread safe? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780151#M1417</link>
    <description>Ram in a node is about 24 Gb. What is "tranform size"? The size of FFT loops?&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If yes, my FFT loops has about 196 iterations (in this case), so about 24 iteration per thread, who is the same amount of work per MPI process in pure MPI code.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Something like this:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[fortran]$OMP DO  i=1,196
..some code...
FFTForward
... some code.
FFTBAckward.
$OMP END DO[/fortran]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My suspect is that each iteration is too big for a single thread, but as mentioned, is the same work of a MPI process..&lt;/DIV&gt;</description>
    <pubDate>Sat, 04 Dec 2010 18:54:57 GMT</pubDate>
    <dc:creator>unrue</dc:creator>
    <dc:date>2010-12-04T18:54:57Z</dc:date>
    <item>
      <title>DftiComputeForward and DftiComputeBAckward are thread safe?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780147#M1413</link>
      <description>Dearl mkl users,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;i'm using MKL 10 and INtel 11.1 under Linux, in particulary FFT calls. My goal is to use OpenMP + MKL to compute FFT. I'm in a second case of this guide:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;META http-equiv="content-type" content="text/html; charset=utf-8" /&gt;&lt;A href="http://software.intel.com/en-us/articles/different-parallelization-techniques-and-intel-mkl-fft/"&gt;http://software.intel.com/en-us/articles/different-parallelization-techniques-and-intel-mkl-fft/&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;UsingDftiComputeForward andDftiComputeBackward in a parallel region, give me wrong results. If these function are wrapped into critical region, works well.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;So my question is:&lt;META http-equiv="content-type" content="text/html; charset=utf-8" /&gt;DftiComputeForward andDftiComputeBackward are thread safe?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks a lot.&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;</description>
      <pubDate>Mon, 22 Nov 2010 15:52:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780147#M1413</guid>
      <dc:creator>unrue</dc:creator>
      <dc:date>2010-11-22T15:52:05Z</dc:date>
    </item>
    <item>
      <title>DftiComputeForward and DftiComputeBAckward are thread safe?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780148#M1414</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;That your test gives wrong results may be caused by incorrect use of MKL. Sharing the test would help to reproduce and identify the problem. For instance, thesecond case in the link you've given implicitly assumes 4 threads in the parallel region - have you checked this?&lt;BR /&gt;&lt;BR /&gt;The compute functions are thread safe assuming not more than N threads are using the same descriptor, where N is the value set by DftiSetValue(hand,DFTI_NUMBER_OF_USER_THREADS, N).&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Dima&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2010 07:24:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780148#M1414</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2010-11-23T07:24:22Z</dc:date>
    </item>
    <item>
      <title>DftiComputeForward and DftiComputeBAckward are thread safe?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780149#M1415</link>
      <description>Hi Dimitry,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;now works well. Results are good setting one FFT descriptor per thread, but the performances are poor :(&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My MPI test case has 32 nodes with 8 Nehalem cores. Hybrid case has 32 nodes , one MPI process per node and 8 thread per process. Hybrid case is two time slow.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I tested all affinity cases with KML_AFFINITY variable, but the results are the same. So i think is not an affinity problem.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Do you have any idea about these performances?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks so much.&lt;/DIV&gt;</description>
      <pubDate>Sat, 04 Dec 2010 15:44:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780149#M1415</guid>
      <dc:creator>unrue</dc:creator>
      <dc:date>2010-12-04T15:44:20Z</dc:date>
    </item>
    <item>
      <title>DftiComputeForward and DftiComputeBAckward are thread safe?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780150#M1416</link>
      <description>&lt;P&gt;If the transforms are large then with 8 tranforms per node you may be short on RAM, because descriptor may require some memory too. What are your transform sizes and RAM/node?&lt;BR /&gt;Thanks&lt;BR /&gt;Dima&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2010 15:51:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780150#M1416</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2010-12-04T15:51:04Z</dc:date>
    </item>
    <item>
      <title>DftiComputeForward and DftiComputeBAckward are thread safe?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780151#M1417</link>
      <description>Ram in a node is about 24 Gb. What is "tranform size"? The size of FFT loops?&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If yes, my FFT loops has about 196 iterations (in this case), so about 24 iteration per thread, who is the same amount of work per MPI process in pure MPI code.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Something like this:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[fortran]$OMP DO  i=1,196
..some code...
FFTForward
... some code.
FFTBAckward.
$OMP END DO[/fortran]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;My suspect is that each iteration is too big for a single thread, but as mentioned, is the same work of a MPI process..&lt;/DIV&gt;</description>
      <pubDate>Sat, 04 Dec 2010 18:54:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780151#M1417</guid>
      <dc:creator>unrue</dc:creator>
      <dc:date>2010-12-04T18:54:57Z</dc:date>
    </item>
    <item>
      <title>DftiComputeForward and DftiComputeBAckward are thread safe?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780152#M1418</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What particular MPI are you using?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;-Vladimir</description>
      <pubDate>Sun, 05 Dec 2010 18:41:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780152#M1418</guid>
      <dc:creator>Vladimir_Petrov__Int</dc:creator>
      <dc:date>2010-12-05T18:41:46Z</dc:date>
    </item>
    <item>
      <title>DftiComputeForward and DftiComputeBAckward are thread safe?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780153#M1419</link>
      <description>Hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;i'm using OpenMPI 1.3.3.&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Dec 2010 18:47:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780153#M1419</guid>
      <dc:creator>unrue</dc:creator>
      <dc:date>2010-12-05T18:47:39Z</dc:date>
    </item>
    <item>
      <title>DftiComputeForward and DftiComputeBAckward are thread safe?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780154#M1420</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
I did not encounter such problems with OpenMPI.&lt;BR /&gt;
&lt;BR /&gt;
In order to localize the issue I suggest that you comment your code in the loop
and leave only calls to MKL.&lt;BR /&gt;
That would help to make the first step towards the problem solution - whether
the slowness is caused by MKL or your code.&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
-Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2010 08:20:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DftiComputeForward-and-DftiComputeBAckward-are-thread-safe/m-p/780154#M1420</guid>
      <dc:creator>Vladimir_Petrov__Int</dc:creator>
      <dc:date>2010-12-06T08:20:59Z</dc:date>
    </item>
  </channel>
</rss>

