<?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 Problems linking with Intel MKL to create a FFT dll in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-linking-with-Intel-MKL-to-create-a-FFT-dll/m-p/894577#M10773</link>
    <description>&lt;P&gt;I have used Intel MKL to calculate the one-dimensional complex FFT from a set of data with no problems. &lt;/P&gt;
&lt;P&gt;The program has a main function and a FFT function and both work. Now i have linked the FFT function as a dll to call it from C# and it hangs due to trying to read from a null pointer just at DftiCreateDescriptor(...).&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;MKL_Complex16* Dades = &lt;FONT color="#0000ff" size="2"&gt;new&lt;/FONT&gt;&lt;FONT size="2"&gt; MKL_Complex16&lt;N&gt;;&lt;/N&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;MKL_LONG N2 = n;&lt;/P&gt;
&lt;P&gt;DFTI_DESCRIPTOR_HANDLE my_desc1_handle;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;long&lt;/FONT&gt;&lt;FONT size="2"&gt; status;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;for&lt;/FONT&gt;&lt;FONT size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; m=0;m&lt;N&gt;
&lt;/N&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;Dades&lt;M&gt;.real = DadesReals&lt;M&gt;;&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;
&lt;P&gt;Dades&lt;N&gt;.imag = DadesCompl&lt;M&gt;;&lt;/M&gt;&lt;/N&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;DftiCreateDescriptor( &amp;amp;my_desc1_handle, DFTI_DOUBLE,DFTI_COMPLEX, 1, N2);&lt;/P&gt;
&lt;P&gt;status = DftiCommitDescriptor( my_desc1_handle );&lt;/P&gt;
&lt;P&gt;status = DftiComputeForward(my_desc1_handle, Dades);&lt;/P&gt;
&lt;P&gt;status = DftiFreeDescriptor(&amp;amp;my_desc1_handle);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;for&lt;/FONT&gt;&lt;FONT size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; m=0;m&lt;N&gt;
&lt;/N&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;DadesReals&lt;M&gt; = Dades&lt;M&gt;.real;&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;
&lt;P&gt;DadesCompl&lt;M&gt; = Dades&lt;M&gt;.imag;&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;delete&lt;/FONT&gt;&lt;FONT size="2"&gt;[] Dades;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I'm totally amazed at seeing the same code working when linked as executable and not working when linked as dll. I have tried both threaded and sequential layers.&lt;/P&gt;</description>
    <pubDate>Thu, 01 May 2008 18:27:23 GMT</pubDate>
    <dc:creator>ionomolo</dc:creator>
    <dc:date>2008-05-01T18:27:23Z</dc:date>
    <item>
      <title>Problems linking with Intel MKL to create a FFT dll</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-linking-with-Intel-MKL-to-create-a-FFT-dll/m-p/894577#M10773</link>
      <description>&lt;P&gt;I have used Intel MKL to calculate the one-dimensional complex FFT from a set of data with no problems. &lt;/P&gt;
&lt;P&gt;The program has a main function and a FFT function and both work. Now i have linked the FFT function as a dll to call it from C# and it hangs due to trying to read from a null pointer just at DftiCreateDescriptor(...).&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;MKL_Complex16* Dades = &lt;FONT color="#0000ff" size="2"&gt;new&lt;/FONT&gt;&lt;FONT size="2"&gt; MKL_Complex16&lt;N&gt;;&lt;/N&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;MKL_LONG N2 = n;&lt;/P&gt;
&lt;P&gt;DFTI_DESCRIPTOR_HANDLE my_desc1_handle;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;long&lt;/FONT&gt;&lt;FONT size="2"&gt; status;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;for&lt;/FONT&gt;&lt;FONT size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; m=0;m&lt;N&gt;
&lt;/N&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;Dades&lt;M&gt;.real = DadesReals&lt;M&gt;;&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;
&lt;P&gt;Dades&lt;N&gt;.imag = DadesCompl&lt;M&gt;;&lt;/M&gt;&lt;/N&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;DftiCreateDescriptor( &amp;amp;my_desc1_handle, DFTI_DOUBLE,DFTI_COMPLEX, 1, N2);&lt;/P&gt;
&lt;P&gt;status = DftiCommitDescriptor( my_desc1_handle );&lt;/P&gt;
&lt;P&gt;status = DftiComputeForward(my_desc1_handle, Dades);&lt;/P&gt;
&lt;P&gt;status = DftiFreeDescriptor(&amp;amp;my_desc1_handle);&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;for&lt;/FONT&gt;&lt;FONT size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; m=0;m&lt;N&gt;
&lt;/N&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;DadesReals&lt;M&gt; = Dades&lt;M&gt;.real;&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;
&lt;P&gt;DadesCompl&lt;M&gt; = Dades&lt;M&gt;.imag;&lt;/M&gt;&lt;/M&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;delete&lt;/FONT&gt;&lt;FONT size="2"&gt;[] Dades;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I'm totally amazed at seeing the same code working when linked as executable and not working when linked as dll. I have tried both threaded and sequential layers.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2008 18:27:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-linking-with-Intel-MKL-to-create-a-FFT-dll/m-p/894577#M10773</guid>
      <dc:creator>ionomolo</dc:creator>
      <dc:date>2008-05-01T18:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems linking with Intel MKL to create a FFT dll</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-linking-with-Intel-MKL-to-create-a-FFT-dll/m-p/894578#M10774</link>
      <description>Hi!
&lt;BR /&gt;What is a link line to create your FFT DLL?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;-Vladimir</description>
      <pubDate>Sun, 04 May 2008 11:48:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-linking-with-Intel-MKL-to-create-a-FFT-dll/m-p/894578#M10774</guid>
      <dc:creator>Vladimir_Lunev</dc:creator>
      <dc:date>2008-05-04T11:48:26Z</dc:date>
    </item>
    <item>
      <title>Hi, ionomolo</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-linking-with-Intel-MKL-to-create-a-FFT-dll/m-p/894579#M10775</link>
      <description>&lt;P&gt;Hi, ionomolo&lt;/P&gt;&lt;P&gt;&amp;nbsp;I meet a same&amp;nbsp;issue with you.&amp;nbsp; Do you solve this issue? Would you give me some suggestions?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Chu&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:26:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-linking-with-Intel-MKL-to-create-a-FFT-dll/m-p/894579#M10775</guid>
      <dc:creator>chu__xl</dc:creator>
      <dc:date>2018-11-05T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Chu,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-linking-with-Intel-MKL-to-create-a-FFT-dll/m-p/894580#M10776</link>
      <description>&lt;P&gt;Chu,&lt;/P&gt;&lt;P&gt;I'd recommend you to look at this KB artcile: &amp;nbsp;https://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program&lt;/P&gt;&lt;P&gt;and check with MKL Linker Adviser how to properly link with Intel MKL -&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 03:52:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-linking-with-Intel-MKL-to-create-a-FFT-dll/m-p/894580#M10776</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-11-06T03:52:58Z</dc:date>
    </item>
  </channel>
</rss>

