<?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:very different results from FFT when using MKL internal threading in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/very-different-results-from-FFT-when-using-MKL-internal/m-p/1240111#M30574</link>
    <description>&lt;P&gt;the issue has been reproduced and escalated against the MKL FFT team. We will keep this thread informed when the fix will be ready to release.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 23 Dec 2020 08:05:20 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2020-12-23T08:05:20Z</dc:date>
    <item>
      <title>very different results from FFT when using MKL internal threading</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/very-different-results-from-FFT-when-using-MKL-internal/m-p/1219790#M30184</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code returns different results (that do not seem to be down to numerical precision). depending on whether I set the mkl internal threading.&lt;/P&gt;
&lt;P&gt;I have attached the input (data1.txt) to reproduce the issue.&lt;/P&gt;
&lt;P&gt;And also the outputs:&lt;/P&gt;
&lt;P&gt;data1_out_4f.txt ( with&amp;nbsp; mkl_set_num_threads(4) )&lt;/P&gt;
&lt;P&gt;data1_out_1f.txt ( with&amp;nbsp; mkl_set_num_threads(1) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;program fft_issue

        USE MKL_DFTI

        implicit none

        include  'mkl.fi'

        integer length
        integer ntr,i,j,itr,nfft
        real, allocatable :: buffer(:)
        complex, allocatable :: buffer_out(:)
        complex, allocatable :: s1(:)
        integer status

        type(dfti_descriptor), pointer :: My_Desc1_Handle

        length = 2051
        nfft = 3200

        allocate(buffer(length))
        allocate(buffer_out(nfft))
        allocate(s1(nfft))

        open(1, file = 'data1.txt')

        do j = 1 , 2051
           read(1,*), buffer(j)
        enddo
        call mkl_set_num_threads(4)

        s1(:length) = cmplx(buffer(:))
        s1(length+1:) = 0

        status = DftiCreateDescriptor(My_Desc1_Handle,DFTI_SINGLE,DFTI_COMPLEX,1,3200)
        status = DftiSetValue(My_Desc1_Handle, DFTI_PLACEMENT, DFTI_NOT_INPLACE);
        status = DftiSetValue(My_Desc1_Handle, DFTI_NUMBER_OF_TRANSFORMS, 1);
        status = DftiSetValue(My_Desc1_Handle, DFTI_BACKWARD_SCALE, 1.0/nfft);
        status = DftiCommitDescriptor(My_Desc1_Handle);
        status = DftiComputeForward( My_Desc1_Handle, s1, buffer_out )
        status = DftiComputeBackward( My_Desc1_Handle, buffer_out, s1 )

        open(1, file = 'data1_out_4f.txt')

        do j = 1 , nfft
           write(1,*), s1(j)
        enddo


      end program

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running the program on a 4-core Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz&lt;/P&gt;
&lt;P&gt;I am using mkl 19 update 5&lt;/P&gt;
&lt;P&gt;My compile command as follows:&lt;/P&gt;
&lt;P&gt;/opt/intel/19/bin/ifort reproduce_intel.f90 -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--end-group -liomp5 -lpthread -lm -ldl -I${MKLROOT}/include&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 13:02:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/very-different-results-from-FFT-when-using-MKL-internal/m-p/1219790#M30184</guid>
      <dc:creator>cgg_distribution</dc:creator>
      <dc:date>2020-10-21T13:02:46Z</dc:date>
    </item>
    <item>
      <title>Re:very different results from FFT when using MKL internal threading</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/very-different-results-from-FFT-when-using-MKL-internal/m-p/1220044#M30189</link>
      <description>&lt;P&gt;thanks, Marie for the case. At the very first glance, everything is correct with this case. We will check and get back asap.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Oct 2020 03:36:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/very-different-results-from-FFT-when-using-MKL-internal/m-p/1220044#M30189</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-10-22T03:36:48Z</dc:date>
    </item>
    <item>
      <title>Re:very different results from FFT when using MKL internal threading</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/very-different-results-from-FFT-when-using-MKL-internal/m-p/1240111#M30574</link>
      <description>&lt;P&gt;the issue has been reproduced and escalated against the MKL FFT team. We will keep this thread informed when the fix will be ready to release.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Dec 2020 08:05:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/very-different-results-from-FFT-when-using-MKL-internal/m-p/1240111#M30574</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-12-23T08:05:20Z</dc:date>
    </item>
  </channel>
</rss>

