<?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     in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/about-2D-FFT/m-p/1060098#M21624</link>
    <description>&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Thank you, Dima, for your reply.&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Same block code with different problem as below:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;complex &amp;nbsp; &amp;nbsp; &amp;nbsp; tmp[nffty][nfftx],swap[nffty][nfftx];&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MKL_LONG &amp;nbsp; &amp;nbsp; &amp;nbsp;flen1[2];&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; flen1[0]=nffty;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; flen1[1]=nfftx;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MKL_LONG &amp;nbsp; &amp;nbsp; &amp;nbsp;status;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; DFTI_DESCRIPTOR_HANDLE &amp;nbsp; &amp;nbsp; &amp;nbsp;hand1; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status=DftiCreateDescriptor(&amp;amp;hand1,DFTI_SINGLE,DFTI_COMPLEX,2,flen1);&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status=DftiCommitDescriptor(hand1); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status=DftiComputeForward(hand1,tmp); &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Problem: If I define nffty=1024 and nfftx=1024, the executing of program is crushed at&amp;nbsp;&amp;nbsp;"complex &amp;nbsp; tmp[nffty][nfftx],swap[nffty][nfftx];"&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Do you think there is size limitation for 2D complex array of tmp and swap?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Thank you very much in advanced.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Nov 2014 16:41:03 GMT</pubDate>
    <dc:creator>Dawn_L_</dc:creator>
    <dc:date>2014-11-21T16:41:03Z</dc:date>
    <item>
      <title>about 2D FFT</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/about-2D-FFT/m-p/1060096#M21622</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi,&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Below is a block of codes for using 2D FFT from MKL:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MKL_LONG &amp;nbsp; &amp;nbsp; &amp;nbsp;flen1[2]={nffty,nfftx}; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MKL_LONG &amp;nbsp; &amp;nbsp; &amp;nbsp;status;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DFTI_DESCRIPTOR_HANDLE &amp;nbsp; &amp;nbsp; &amp;nbsp;hand1; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status=DftiCreateDescriptor(&amp;amp;hand1,DFTI_SINGLE,DFTI_COMPLEX,2,flen1);&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status=DftiCommitDescriptor(hand1); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status=DftiComputeForward(hand1,tmp);&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmp is a 2D complex array.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;problems:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmp in DftiComputeForward: if tmp is given by tmp[ ][ ] the compiling&amp;nbsp;can go through and the block codes works well. If tmp is given by **tmp and alloc memory to it, the compiling can go through but executing is crushed&amp;nbsp;at DftiComputeForward.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; So, the problem is in/out parameter in DftiComputeForward&amp;nbsp;has to be hard-coding 2D array and cannot be pointer type?&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Any answer is welcomed. Thank you very much.&lt;/P&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;</description>
      <pubDate>Thu, 20 Nov 2014 19:28:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/about-2D-FFT/m-p/1060096#M21622</guid>
      <dc:creator>Dawn_L_</dc:creator>
      <dc:date>2014-11-20T19:28:05Z</dc:date>
    </item>
    <item>
      <title>You are correct, the i/o</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/about-2D-FFT/m-p/1060097#M21623</link>
      <description>&lt;P&gt;You are correct, the i/o pointers should point directly to the data, not to the pointers to the rows/columns. See also what FFTW3 documentation says on &lt;A href="http://fftw.org/fftw3_doc/Dynamic-Arrays-in-C_002dThe-Wrong-Way.html#Dynamic-Arrays-in-C_002dThe-Wrong-Way"&gt;this&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
	Dima&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 03:44:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/about-2D-FFT/m-p/1060097#M21623</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2014-11-21T03:44:14Z</dc:date>
    </item>
    <item>
      <title>   </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/about-2D-FFT/m-p/1060098#M21624</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Thank you, Dima, for your reply.&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Same block code with different problem as below:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;complex &amp;nbsp; &amp;nbsp; &amp;nbsp; tmp[nffty][nfftx],swap[nffty][nfftx];&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MKL_LONG &amp;nbsp; &amp;nbsp; &amp;nbsp;flen1[2];&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; flen1[0]=nffty;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; flen1[1]=nfftx;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MKL_LONG &amp;nbsp; &amp;nbsp; &amp;nbsp;status;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; DFTI_DESCRIPTOR_HANDLE &amp;nbsp; &amp;nbsp; &amp;nbsp;hand1; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status=DftiCreateDescriptor(&amp;amp;hand1,DFTI_SINGLE,DFTI_COMPLEX,2,flen1);&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status=DftiCommitDescriptor(hand1); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; status=DftiComputeForward(hand1,tmp); &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Problem: If I define nffty=1024 and nfftx=1024, the executing of program is crushed at&amp;nbsp;&amp;nbsp;"complex &amp;nbsp; tmp[nffty][nfftx],swap[nffty][nfftx];"&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Do you think there is size limitation for 2D complex array of tmp and swap?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Thank you very much in advanced.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 16:41:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/about-2D-FFT/m-p/1060098#M21624</guid>
      <dc:creator>Dawn_L_</dc:creator>
      <dc:date>2014-11-21T16:41:03Z</dc:date>
    </item>
    <item>
      <title>Yes, 16 megabytes exceed the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/about-2D-FFT/m-p/1060099#M21625</link>
      <description>&lt;P&gt;Yes, 16 megabytes exceed the typical size of thread stack.&lt;/P&gt;

&lt;P&gt;Try allocating the arrays at run time or extend the size of stack using an appropriate compiler switch.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 04:46:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/about-2D-FFT/m-p/1060099#M21625</guid>
      <dc:creator>Evgueni_P_Intel</dc:creator>
      <dc:date>2014-11-25T04:46:40Z</dc:date>
    </item>
  </channel>
</rss>

