<?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 Yes, a C++ test using &amp;quot;mkl.h&amp;quot; in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948299#M15042</link>
    <description>&lt;P&gt;Yes, a C++ test using "mkl.h" and "MKL_Get_Max_Threads();" works fine. &lt;BR /&gt;For the dll import in C# we used the file from the redistribution folder.&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2013 13:41:21 GMT</pubDate>
    <dc:creator>Philipp_W_</dc:creator>
    <dc:date>2013-05-03T13:41:21Z</dc:date>
    <item>
      <title>Problems calling mkl_rt.dll in C# / program crashes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948297#M15040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;we are using Intel MKL 11.02. since a few weeks and a first C++ example calling the includes works fine. But we have some trouble to import the mkl_rt.dll in C#. When calling the dll the program crashes without any notice. We have tried it for some functions (MKL_Set_Num_Threads, VDDIV, VDADD, DASUM, MKL_Get_Max_Threads) and always get the same result. Additionally we tested 32bit and 64bit versions of mkl_rt.dll and also the Intel C#-example "vddiv" - and result every time in a uncommented program stop.&lt;/P&gt;
&lt;P&gt;namespace MKL_Test&lt;BR /&gt;public unsafe class MKL_Wrapper&lt;/P&gt;
&lt;P&gt;[DllImport("mkl_rt.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling=true, SetLastError = false, EntryPoint = "MKL_Get_Max_Threads")]&lt;BR /&gt;public static extern int Get_Max_Threads();&lt;/P&gt;
&lt;P&gt;The function is then called by:&amp;nbsp; int anzahl = MKL_Test.MKL_Wrapper.Get_Max_Threads();&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;Are there any further issues we don't have taken into account? &lt;BR /&gt;Our test files are attached.&lt;/P&gt;
&lt;P&gt;Many thanks in advance,&lt;BR /&gt;Philipp Wollmann&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 07:21:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948297#M15040</guid>
      <dc:creator>Philipp_W_</dc:creator>
      <dc:date>2013-05-03T07:21:00Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...The function is then</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948298#M15041</link>
      <description>&amp;gt;&amp;gt;...The function is then called by:  int anzahl = MKL_Test.MKL_Wrapper.Get_Max_Threads();

I'd like to confirm that a pure C/C++ test with the function &lt;STRONG&gt;MKL_Get_Max_Threads&lt;/STRONG&gt; works. Is that correct?</description>
      <pubDate>Fri, 03 May 2013 13:14:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948298#M15041</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-03T13:14:00Z</dc:date>
    </item>
    <item>
      <title>Yes, a C++ test using "mkl.h"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948299#M15042</link>
      <description>&lt;P&gt;Yes, a C++ test using "mkl.h" and "MKL_Get_Max_Threads();" works fine. &lt;BR /&gt;For the dll import in C# we used the file from the redistribution folder.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 13:41:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948299#M15042</guid>
      <dc:creator>Philipp_W_</dc:creator>
      <dc:date>2013-05-03T13:41:21Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...When calling the dll the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948300#M15043</link>
      <description>&amp;gt;&amp;gt;...When calling the dll the program crashes without any notice...

Could you verify a list of loaded DLLs for C/C++ test and C# test? Here are instructions:

- Compile debug versions of both applications
- Start Debugging ( F10 ) for C/C++ application, do something and exit
- Take a look at Output Window of Visual Studio for a complete list of loaded DLLs
- Start Debugging ( F10 ) for C# application, do something and exit
- Take a look at Output Window of Visual Studio for a complete list of loaded DLLs
- Find all loaded Intel DLLs for both cases and compare ( take into account that full paths to DLLs are displayed )

Please posts results of your investigation.</description>
      <pubDate>Fri, 03 May 2013 13:55:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948300#M15043</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-03T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Another verification for C#</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948301#M15044</link>
      <description>Another verification for C# application:

- Verify that a 32-bit C# application uses 32-bit Intel DLLs
and
- Verify that a 64-bit C# application uses 64-bit Intel DLLs</description>
      <pubDate>Fri, 03 May 2013 14:00:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948301#M15044</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-03T14:00:03Z</dc:date>
    </item>
    <item>
      <title>Hi Sergey,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948302#M15045</link>
      <description>&lt;P&gt;Hi Sergey,&lt;/P&gt;
&lt;P&gt;thanks for your advice. I checked the mentioned tasks and found, that "intel_mkl_thread.dll" was missed in the C# project - now it runs. Interestingly this dll was not indicated by an error prompt, other missed dll files were mentioned by an error message.&lt;/P&gt;
&lt;P&gt;Many thanks for the solution!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Philipp&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 14:33:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-calling-mkl-rt-dll-in-C-program-crashes/m-p/948302#M15045</guid>
      <dc:creator>Philipp_W_</dc:creator>
      <dc:date>2013-05-03T14:33:14Z</dc:date>
    </item>
  </channel>
</rss>

