<?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: Problems usind DFT in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1298711#M27722</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Reminder:&lt;/P&gt;
&lt;P&gt;Is your issue resolved ? Please let us know if the issue still persists by providing above mentioned details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Regards,&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Vidya&lt;/I&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 04:17:32 GMT</pubDate>
    <dc:creator>VidyalathaB_Intel</dc:creator>
    <dc:date>2021-07-15T04:17:32Z</dc:date>
    <item>
      <title>Problems usind DFT</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1296576#M27719</link>
      <description>&lt;P&gt;I want to compare the performance of Fourier Transforms between IPPS library and cuFFT library. Now Im comparing the Real to Complex case. For IPPS, I implemented the FFT (inputs size equal to 2^n) and then I tryed with the DFT (inputs of any size).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The FFT works fine but when I run the DFT I get an output of 0s. I read all the documentation about the DFT and did a very similiar code from&amp;nbsp; &lt;EM&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/how-to-use-intel-ipp-s-1d-fourier-transform-functions.html" target="_blank" rel="noopener"&gt;https://software.intel.com/content/www/us/en/develop/articles/how-to-use-intel-ipp-s-1d-fourier-transform-functions.html&lt;/A&gt;&amp;nbsp; but it stills dont work.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Im using IPPS version 2020.0.1 and Debian 10 as OS.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the code I have a matrix as input and I will do as many DFT as row in the matrix. For each row I perform a DFT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// NX == amount of columns in matrix
// BATCH == amounto of rows in matrix
int NX = 4;
int BATCH = 1;
int SEED = 1;
int flag = IPP_FFT_NODIV_BY_ANY;

int sizeSpec= 0;
int sizeInit = 0;
int sizeBuffer = 0;

Ipp8u *pMemInit = 0;
Ipp8u *pMemBuffer = 0;

// For this case, BATCH is 1 so only the NX is important
float **datos = (float**) malloc(sizeof(float*) * NX * BATCH);

// Generates a NX x BATCH matrix with random numbers of the 4 possibles //(-3.533, -1.000, 1.000, 3.533) using the SEED
datos = genMatrix(NX, BATCH, SEED);

Ipp32fc **dst = (Ipp32fc**) malloc(sizeof(Ipp32fc*) * (NX / 2 + 1) * BATCH);

// Check is NX is power of 2
if (!((NX) &amp;amp; (NX - 1)))
{
    // FFT 
    // ...
}
else
{
    IppsDFTSpec_R_32f *pSpec = 0;
    ippsDFTGetSize_R_32f(NX, flag, ippAlgHintNone, &amp;amp;sizeSpec, &amp;amp;sizeInit, &amp;amp;sizeBuffer);
    /// allocate memory for required buffers
    if (sizeInit &amp;gt; 0)
    {
        pMemInit = (Ipp8u*) ippMalloc_8u(sizeInit);
    }

    if (sizeBuffer &amp;gt; 0)
    {
        pMemBuffer = (Ipp8u*) ippMalloc_8u(sizeBuffer);
    }

    ippsDFTInit_R_32f(NX, flag, ippAlgHintNone, pSpec, pMemInit);

    if (sizeInit &amp;gt; 0)
    {
        ippFree(pMemInit);
    }

    // Do the DFT
   for (int i = 0; i &amp;lt; BATCH; i++)
   {
       dst[i] = (Ipp32fc*) malloc(sizeof(Ipp32fc) * (NX / 2 + 1));
       /// perform forward DFT
       ippsDFTFwd_RToCCS_32f((Ipp32f*) datos[i], (Ipp32f*) dst[i], pSpec, pMemBuffer);
   }
        
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the FFT option (power of 2) I have a similar code than in DFT. I run this code for both cases and in FFT it works but in DFT I only get 0s.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.D: excuse me for my english&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 10:48:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1296576#M27719</guid>
      <dc:creator>Golvin</dc:creator>
      <dc:date>2021-07-07T10:48:28Z</dc:date>
    </item>
    <item>
      <title>Re:Problems usind DFT</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1296989#M27720</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;I style="font-size: 16px; font-family: intel-clear, tahoma, Helvetica, helvetica, Arial, sans-serif;"&gt;Im using IPPS version 2020.0.1&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Could you please try with latest ipp version which comes with oneAPI toolkit 2021.3.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;and also share a complete reproducer if possible (along with the compiler that you are using) so that we can work on it from our end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Vidya.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jul 2021 13:20:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1296989#M27720</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2021-07-08T13:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problems usind DFT</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1298711#M27722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Reminder:&lt;/P&gt;
&lt;P&gt;Is your issue resolved ? Please let us know if the issue still persists by providing above mentioned details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Regards,&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;Vidya&lt;/I&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 04:17:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1298711#M27722</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2021-07-15T04:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems usind DFT</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1299107#M27723</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes, I solved the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I forgot to allocate memory for the pSpec variable.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 07:47:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1299107#M27723</guid>
      <dc:creator>Golvin</dc:creator>
      <dc:date>2021-07-16T07:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems usind DFT</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1299179#M27725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;I&gt;&amp;gt;&amp;gt;Yes, I solved the problem.&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;Thanks for the confirmation!&lt;/P&gt;
&lt;P&gt;Glad to know that you have figured it out.&lt;/P&gt;
&lt;P&gt;we are closing this thread as your issue is resolved.&lt;/P&gt;
&lt;P&gt;If you require any additional assistance from Intel, please start a new thread.&lt;/P&gt;
&lt;P&gt;Have a good day!&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 13:25:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Problems-usind-DFT/m-p/1299179#M27725</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2021-07-16T13:25:17Z</dc:date>
    </item>
  </channel>
</rss>

