<?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: is FFTW wrapper call thread safe inside OpenMP region? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/is-FFTW-wrapper-call-thread-safe-inside-OpenMP-region/m-p/1498529#M34700</link>
    <description>&lt;P&gt;This is best answered by those on the MKL Forum. I'll move this thread there.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2023 10:57:10 GMT</pubDate>
    <dc:creator>Barbara_P_Intel</dc:creator>
    <dc:date>2023-06-23T10:57:10Z</dc:date>
    <item>
      <title>is FFTW wrapper call thread safe inside OpenMP region?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/is-FFTW-wrapper-call-thread-safe-inside-OpenMP-region/m-p/1498510#M34699</link>
      <description>&lt;P&gt;Good Day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the FFTW compatible wrapper for FFT and compiling the code with &lt;STRONG&gt;/Qmkl:&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;sequential&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;option. It works well in serial execution. The question I have is,&lt;/P&gt;&lt;P&gt;(A) if I do the same inside the OpenMP parallel region as mentioned below, is it thread safe?&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;(B) do I need to change the compiler option from /Qmkl:sequential to /Qmkl:parallel, or its not required since I am not going to use parallel threads within FFTW.&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;!$OMP PARALLEL DEFAULT(NONE) PRIVATE(plan, x, y) SHARED(n, FFTW_ESTIMATE)
!$OMP DO
...
    CALL sfftw_plan_dft_r2c_1d(plan, n, x, y, FFTW_ESTIMATE)
    CALL sfftw_execute_dft(plan, x, y)
    CALL sfftw_destroy_plan(plan)
...
!$OMP END DO
!$OMP PARALLEL&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Appreciate any help I can get on this topic.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 08:39:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/is-FFTW-wrapper-call-thread-safe-inside-OpenMP-region/m-p/1498510#M34699</guid>
      <dc:creator>mohanmuthu</dc:creator>
      <dc:date>2023-06-23T08:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: is FFTW wrapper call thread safe inside OpenMP region?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/is-FFTW-wrapper-call-thread-safe-inside-OpenMP-region/m-p/1498529#M34700</link>
      <description>&lt;P&gt;This is best answered by those on the MKL Forum. I'll move this thread there.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 10:57:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/is-FFTW-wrapper-call-thread-safe-inside-OpenMP-region/m-p/1498529#M34700</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2023-06-23T10:57:10Z</dc:date>
    </item>
  </channel>
</rss>

