<?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 MKL 8.0 Fourier Transform in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-8-0-Fourier-Transform/m-p/913587#M12339</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm currently having a problem when I run my code. Every time I try to perform a DFT using the mkl routines I immediately get a segmentation fault before the program can do anything else. Whenever I void out the mkl routines from DftiCreate... to ...DftiFreeDiscriptor, the program runs fine. I tried using only the CreateDiscriptor call to see if it would even do that, but I keep getting an immediate segmentation fault whenever these calls are used. Is my usage correct? There are no errors when compiling; everything seems to be linking fine. Below is my implemetation.&lt;BR /&gt;&lt;BR /&gt;#include "mkl_dfti.h"&lt;BR /&gt;int main( )&lt;BR /&gt;{&lt;BR /&gt; int i,j;&lt;BR /&gt; double x[4000], Cv[4000], FTreal[4000], FTimag[4000];&lt;BR /&gt;&lt;BR /&gt; DFTI_DISCRIPTOR *DFT&lt;BR /&gt;&lt;BR /&gt; for(i=0;i&amp;lt;4000;i++){x&lt;I&gt; = Cv&lt;I&gt;;}&lt;BR /&gt;&lt;BR /&gt; long status;&lt;BR /&gt; status = DftiCreateDiscriptor( &amp;amp;DFT, DFTI_DOUBLE, DFTI_REAL, 1, 4000 );&lt;BR /&gt; status = DftiCommitDiscriptor( DFT );&lt;BR /&gt; status = DftiComputeForward( DFT, x );&lt;BR /&gt; status = DftiFreeDescriptor( &amp;amp;DFT );&lt;BR /&gt;&lt;BR /&gt; for(j=0;j&amp;lt;2000;j++)&lt;BR /&gt; {&lt;BR /&gt; FTreal&lt;J&gt; = x[2*j];&lt;BR /&gt; FTimag&lt;J&gt; = x[2*j+1];&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;HELP!!!&lt;BR /&gt;&lt;/J&gt;&lt;/J&gt;&lt;/I&gt;&lt;/I&gt;</description>
    <pubDate>Mon, 21 Aug 2006 09:34:40 GMT</pubDate>
    <dc:creator>alanderv</dc:creator>
    <dc:date>2006-08-21T09:34:40Z</dc:date>
    <item>
      <title>MKL 8.0 Fourier Transform</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-8-0-Fourier-Transform/m-p/913587#M12339</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm currently having a problem when I run my code. Every time I try to perform a DFT using the mkl routines I immediately get a segmentation fault before the program can do anything else. Whenever I void out the mkl routines from DftiCreate... to ...DftiFreeDiscriptor, the program runs fine. I tried using only the CreateDiscriptor call to see if it would even do that, but I keep getting an immediate segmentation fault whenever these calls are used. Is my usage correct? There are no errors when compiling; everything seems to be linking fine. Below is my implemetation.&lt;BR /&gt;&lt;BR /&gt;#include "mkl_dfti.h"&lt;BR /&gt;int main( )&lt;BR /&gt;{&lt;BR /&gt; int i,j;&lt;BR /&gt; double x[4000], Cv[4000], FTreal[4000], FTimag[4000];&lt;BR /&gt;&lt;BR /&gt; DFTI_DISCRIPTOR *DFT&lt;BR /&gt;&lt;BR /&gt; for(i=0;i&amp;lt;4000;i++){x&lt;I&gt; = Cv&lt;I&gt;;}&lt;BR /&gt;&lt;BR /&gt; long status;&lt;BR /&gt; status = DftiCreateDiscriptor( &amp;amp;DFT, DFTI_DOUBLE, DFTI_REAL, 1, 4000 );&lt;BR /&gt; status = DftiCommitDiscriptor( DFT );&lt;BR /&gt; status = DftiComputeForward( DFT, x );&lt;BR /&gt; status = DftiFreeDescriptor( &amp;amp;DFT );&lt;BR /&gt;&lt;BR /&gt; for(j=0;j&amp;lt;2000;j++)&lt;BR /&gt; {&lt;BR /&gt; FTreal&lt;J&gt; = x[2*j];&lt;BR /&gt; FTimag&lt;J&gt; = x[2*j+1];&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;HELP!!!&lt;BR /&gt;&lt;/J&gt;&lt;/J&gt;&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Mon, 21 Aug 2006 09:34:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-8-0-Fourier-Transform/m-p/913587#M12339</guid>
      <dc:creator>alanderv</dc:creator>
      <dc:date>2006-08-21T09:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: MKL 8.0 Fourier Transform</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-8-0-Fourier-Transform/m-p/913588#M12340</link>
      <description>Don't you need to allocate an extra element for the Nyquist frequency? An n-point real-&amp;gt;complex fft needs 2*(n/2+1) elements using the default CCE storage format. You're probably crashing due to overwriting the end of the array.&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Aug 2006 10:16:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-8-0-Fourier-Transform/m-p/913588#M12340</guid>
      <dc:creator>gary-oberbrunner</dc:creator>
      <dc:date>2006-08-28T10:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: MKL 8.0 Fourier Transform</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-8-0-Fourier-Transform/m-p/913589#M12341</link>
      <description>Thank you very much for replying!! Let's see...if I have a data set with 4000 elements (index ranging from 0-3999) then the DFT should output 2000 real elements and 2000 imaginary elements. So I thought allocating 4000 elements would be sufficient. However, I tried reducing the size of the input array without decreasing the allocated memory for both the input and output arrays, but I still get a segmentation fault the instant I press enter. I've also tried using a pointer in the following form:&lt;BR /&gt;&lt;BR /&gt;void *X;&lt;BR /&gt;Double Xin[4000];&lt;BR /&gt;&lt;PUT data="https://community.intel.com/" in="" xin=""&gt;&lt;BR /&gt;X = Xin;&lt;BR /&gt;&lt;BR /&gt;This had no effect either. &lt;BR /&gt;I also tried going bare-bones by declaring my variables and making the DFT calls without trying to put the data in an output array other than the in-place array that the MKL DFT puts out. Still I have the same symptom. Perhaps I'm misunderstanding what you wrote. But, I think its odd that nothing in the code runs at all. I have a whole section that reads data from a data file that includes status messages; none of that stuff runs. The program seems to crash when it reads the headers....that is until I get rid og the DFT calls; then everything runs fine. ???? 8^P ????&lt;BR /&gt;&lt;/PUT&gt;</description>
      <pubDate>Wed, 30 Aug 2006 04:02:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-8-0-Fourier-Transform/m-p/913589#M12341</guid>
      <dc:creator>alanderv</dc:creator>
      <dc:date>2006-08-30T04:02:28Z</dc:date>
    </item>
  </channel>
</rss>

