<?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 New with the tool -  I'm having some issues, with DftiCreateDes in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779117#M1301</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After compiling with the makefile that you provided me, I attempted to use the DLL in my project. I'm still getting this warning which is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warning 1 warning LNK4248: unresolved typeref token (0100000E) for 'DFTI_DFT_Desc_struct'; image may not run &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the code stops working in the line marked with '--------&amp;gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;/P&gt;&lt;P&gt;* FFT.cpp&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &lt;STDLIB.H&gt;&lt;/STDLIB.H&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "FFT.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_NAMESPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P&gt;Compute the FFT&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void&lt;/P&gt;&lt;P&gt;FFT::Compute(array&lt;DOUBLE&gt;^ x, array&lt;DOUBLE&gt;^ y)&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; int length = x-&amp;gt;Length;&lt;/P&gt;&lt;P&gt; if (y-&amp;gt;Length != x-&amp;gt;Length)&lt;/P&gt;&lt;P&gt; throw gcnew System::ArgumentException("FFT: arrays must be same length");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; double* xx = new double[length];&lt;/P&gt;&lt;P&gt; for (int i = 0; i &amp;lt; length; i++) &lt;/P&gt;&lt;P&gt; xx&lt;I&gt; = x&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; double* yy = new double[length];&lt;/P&gt;&lt;P&gt; for (int i = 0; i &amp;lt; length; i++) &lt;/P&gt;&lt;P&gt; yy&lt;I&gt; = y&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; // create the FFT descriptor&lt;/P&gt;&lt;P&gt; DFTI_DESCRIPTOR_HANDLE desc;&lt;/P&gt;&lt;P&gt;--------&amp;gt; long val = DftiCreateDescriptor(&amp;amp;desc, DFTI_DOUBLE, DFTI_REAL, 1, length);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So would you please provide me the size of the data that the DFTI_DFT_Desc_struct is handling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we need any additional header or lib file with the definition of the struct (DFTI_DFT_Desc_struct)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jan 2011 18:06:15 GMT</pubDate>
    <dc:creator>diegoarenas</dc:creator>
    <dc:date>2011-01-10T18:06:15Z</dc:date>
    <item>
      <title>New with the tool -  I'm having some issues, with DftiCreateDescriptor.  Help really appreciated</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779113#M1297</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm coding an application using C# with Visual Studio 2008. I've been reading the documentation that came with the Intel Math Library...and some forums...but couldn't get an answer.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;Attempting to statically-link MKL v9.x into a managed C++ DLL to calculate FFT, using Visual Studio 2008.&lt;/P&gt;&lt;P&gt;Linker command:&lt;/P&gt;&lt;P&gt;/OUT:"C:\\Projects\\Acquisition Toolkit\\Mainline\\\\Builds\\Debug\\AcquisitionToolkit.FFT.dll" /INCREMENTAL /NOLOGO /LIBPATH:"C:\\Projects\\Acquisition Toolkit\\Mainline\\\\Lib\\Win32" /DLL /MANIFEST /MANIFESTFILE:"Debug\\Win32\\AcquisitionToolkit.FFT.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /ASSEMBLYDEBUG /PDB:"c:\\Projects\\Acquisition Toolkit\\Mainline\\Builds\\Debug\\AcquisitionToolkit.FFT.pdb" /DYNAMICBASE /FIXED:No /NXCOMPAT /MACHINE:X86 /KEYFILE:"AcquisitionToolkit.snk" /ERRORREPORT:PROMPT mkl_c.lib mkl_ia32.lib libguide40.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Getting an unresolved external when linking:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1&amp;gt;FFT.obj : warning LNK4248: unresolved typeref token (0100000E) for 'DFTI_DFT_Desc_struct'; image may not run&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;At run-time, it crashes on the call to DftiCreateDescriptor, presumably because it didn't know the format of the descriptor struct:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// create the FFT descriptor&lt;/P&gt;&lt;P&gt;DFTI_DESCRIPTOR_HANDLE desc;&lt;/P&gt;&lt;P&gt;long val = DftiCreateDescriptor(&amp;amp;desc, DFTI_DOUBLE, DFTI_REAL, 1, length);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// commit the FFT descriptor&lt;/P&gt;&lt;P&gt;DftiCommitDescriptor(desc);&lt;/P&gt;&lt;P&gt;We are including the mkl_dfti.h header file. Are there additional header files we need or additional libraries we need to link with? Where is that descriptor struct actually defined?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I attempted to dynamically link using the mkl_c_dll.lib, but get the same unresolved external linker warning. Is there some other linker option I need?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please if someone could give me some kind of guidance/help. I'd REALLY appreciate it.&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2010 17:15:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779113#M1297</guid>
      <dc:creator>diegoarenas</dc:creator>
      <dc:date>2010-11-23T17:15:27Z</dc:date>
    </item>
    <item>
      <title>New with the tool -  I'm having some issues, with DftiCreateDes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779114#M1298</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see &lt;A href="http://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program/"&gt;examples&lt;/A&gt; of using MKL in C# code. The article contains a small suite including DFTI example. The first package Intel_MKL_C#_Examples.zip demonstrates how to build custom dll for calling MKL functionsfrom C#. Since MKL 10.3 its not required to build a custom DLL. The second package demonstrates using MKL 10.3.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vladimir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2010 05:48:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779114#M1298</guid>
      <dc:creator>Vladimir_Koldakov__I</dc:creator>
      <dc:date>2010-12-02T05:48:40Z</dc:date>
    </item>
    <item>
      <title>New with the tool -  I'm having some issues, with DftiCreateDes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779115#M1299</link>
      <description>Hi Vladimir,&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer. I've tried using those examples, but seems that they're not working for version 9.1. As I am not able to have the newer version...I need to make it work with this one.&lt;BR /&gt;&lt;BR /&gt;I've tried doing&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;nmake ia32 MKLREDIST="C:\Documents and settings\myUser\desktop\Intel_MKL_C#_Examples"&lt;BR /&gt;&lt;BR /&gt;nmake ia32 MKLROOT="C:\Documents and settings\myUser\desktop\Intel_MKL_C#_Examples" &lt;/P&gt;&lt;P&gt;nmake ia32 MKLROOT="C:\program files\intel\ml\9.1"&lt;/P&gt;&lt;P&gt;nmake ia32 MKLREDIST="C:\program files\intel\ml\9.1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm getting the same error message. Seems that for this version (9.1) there's no "mkl_intel_c_dll.lib" file. I've found that there's one called "mkl_c.lib". I was thinking that maybe that file is the same (but it's the 9.1 version), so I renamed it to "mkl_intel.....", and got another error. This time it's asking for another file "mkl_intel_thread_dll.lib", and I haven't found any "similar" file name for it.&lt;BR /&gt;&lt;BR /&gt;I know that doing this is not going to fix the situation...but I've nochoice but to try it...is there anything else that I could do with it?&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2010 14:05:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779115#M1299</guid>
      <dc:creator>diegoarenas</dc:creator>
      <dc:date>2010-12-13T14:05:54Z</dc:date>
    </item>
    <item>
      <title>New with the tool -  I'm having some issues, with DftiCreateDes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779116#M1300</link>
      <description>Hi Diego,&lt;BR /&gt;&lt;BR /&gt;Please replace the makefile with the attached one. It works for ia32 target both on 32- and 64-bit OS for MKL 9.1. &lt;A onclick="ndownload('http://software.intel.com/file/33031')"&gt;makefile&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I believe the correct command line in your case should be:&lt;BR /&gt;&lt;BR /&gt;nmake ia32 MKLROOT="C:\program files\intel\ml\9.1"&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vladimir&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Dec 2010 20:36:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779116#M1300</guid>
      <dc:creator>Vladimir_Koldakov__I</dc:creator>
      <dc:date>2010-12-21T20:36:42Z</dc:date>
    </item>
    <item>
      <title>New with the tool -  I'm having some issues, with DftiCreateDes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779117#M1301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After compiling with the makefile that you provided me, I attempted to use the DLL in my project. I'm still getting this warning which is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warning 1 warning LNK4248: unresolved typeref token (0100000E) for 'DFTI_DFT_Desc_struct'; image may not run &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the code stops working in the line marked with '--------&amp;gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*****************************************************************************&lt;/P&gt;&lt;P&gt;* FFT.cpp&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &lt;STDLIB.H&gt;&lt;/STDLIB.H&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "FFT.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START_NAMESPACE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P&gt;Compute the FFT&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void&lt;/P&gt;&lt;P&gt;FFT::Compute(array&lt;DOUBLE&gt;^ x, array&lt;DOUBLE&gt;^ y)&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; int length = x-&amp;gt;Length;&lt;/P&gt;&lt;P&gt; if (y-&amp;gt;Length != x-&amp;gt;Length)&lt;/P&gt;&lt;P&gt; throw gcnew System::ArgumentException("FFT: arrays must be same length");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; double* xx = new double[length];&lt;/P&gt;&lt;P&gt; for (int i = 0; i &amp;lt; length; i++) &lt;/P&gt;&lt;P&gt; xx&lt;I&gt; = x&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; double* yy = new double[length];&lt;/P&gt;&lt;P&gt; for (int i = 0; i &amp;lt; length; i++) &lt;/P&gt;&lt;P&gt; yy&lt;I&gt; = y&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; // create the FFT descriptor&lt;/P&gt;&lt;P&gt; DFTI_DESCRIPTOR_HANDLE desc;&lt;/P&gt;&lt;P&gt;--------&amp;gt; long val = DftiCreateDescriptor(&amp;amp;desc, DFTI_DOUBLE, DFTI_REAL, 1, length);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So would you please provide me the size of the data that the DFTI_DFT_Desc_struct is handling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we need any additional header or lib file with the definition of the struct (DFTI_DFT_Desc_struct)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2011 18:06:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779117#M1301</guid>
      <dc:creator>diegoarenas</dc:creator>
      <dc:date>2011-01-10T18:06:15Z</dc:date>
    </item>
    <item>
      <title>New with the tool -  I'm having some issues, with DftiCreateDes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779118#M1302</link>
      <description>Hi Diego,&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;The issue is related to /clr (managed C++) and is explained in various places on Internet, for example here: &lt;A href="http://www.dotnet247.com/247reference/msgs/1/7811.aspx"&gt;http://www.dotnet247.com/247reference/msgs/1/7811.aspx&lt;/A&gt;. Rewording the reply of Anson Tsao from MS for our context:&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;&lt;I&gt;The problem is because struct DFTI_DFT_Desc_struct{} is not &lt;STRONG&gt;defined&lt;/STRONG&gt; in the header files. &lt;/I&gt;&lt;I&gt;To fix the problem define it your sources (e.g. stdafx.h):&lt;/I&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;&lt;I&gt;struct DFTI_DFT_Desc_struct {};&lt;/I&gt;&lt;/P&gt;&lt;P style="padding-left: 20pt;"&gt;&lt;I&gt;More info: &lt;/I&gt;&lt;I&gt;DFTI_DESCRIPTOR_HANDLE is defined as typedef struct DFTI_DFT_Desc_struct *DFTI_DESCRIPTOR_HANDLE; for typesafety. &lt;/I&gt;&lt;I&gt;In native C++, not having struct DFTI_DFT_Desc_struct defined is not a problem, but in managed C++ functions it will &lt;/I&gt;&lt;I&gt;throw TypeLoadException when the CLR is trying to resolve struct DFTI_DFT_Desc_struct *.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I hope this will helpyou. In particular, for a quick workaround you should add the definition somewhere inthe clr-compiled code, as follows:&lt;/P&gt;&lt;P&gt;Option 1.Add the following definition in the global namespace (e.g. just after#include "mkl_dfti.h"):&lt;/P&gt;&lt;PRE&gt;[cpp]struct DFTI_DFT_Desc_struct {};[/cpp]&lt;/PRE&gt;&lt;P&gt;Option 2. Modify mkl_dfti.h for clr-compilation by adding the following three lines just before the first line mentioning DFTI_DFT_Desc_struct:&lt;/P&gt;&lt;PRE&gt;[cpp]#if defined(__cplusplus_cli)
struct DFTI_DFT_Desc_struct {};
#endif[/cpp]&lt;/PRE&gt;&lt;P&gt;Thanks&lt;BR /&gt;Dima&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2011 06:31:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/New-with-the-tool-I-m-having-some-issues-with/m-p/779118#M1302</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2011-01-14T06:31:42Z</dc:date>
    </item>
  </channel>
</rss>

