<?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 with Intel MKL 10.1 custom DLLs in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-Intel-MKL-10-1-custom-DLLs/m-p/868079#M8157</link>
    <description>Hello all
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I am having some problems with the Intel MKL 10.1 custom DLL builder.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Neither the 32-bit nor the 64-bit DLLs seem to work.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I run "nmake ia32" inside the VS2008 Command Prompt. If I open this DLL with Dependency Walker, everything seems fine. However, when I try to load this DLL in my application (Java, using the JNA library), the following error dialog appears:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;---------------------------&lt;BR /&gt;Microsoft Visual C++ Runtime Library&lt;BR /&gt;---------------------------&lt;BR /&gt;Runtime Error!&lt;BR /&gt;Program: C:\Program Files (x86)\Java\jdk1.6.0_06\bin\javaw.exe&lt;BR /&gt;R6034&lt;BR /&gt;An application has made an attempt to load the C runtime library incorrectly.&lt;BR /&gt;Please contact the application's support team for more information.&lt;BR /&gt;---------------------------&lt;BR /&gt;OK   &lt;BR /&gt;---------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;With the 64-bit DLL built with "nmake em64t", I also get an error when JNA tries to load it. When I examine this DLL in the 64-bit version of Dependency Walker, it seems the DLL is linked to 64-bit versions of the system libraries, except for being linked to a 32-bit version of msvcr90. I thought this might be a problem with Dependency Walker, but if I examine other MKL DLLs, it finds them to be linked to the 64-bit version of msvcr90. The Dependency Walker error in this case is:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.&lt;BR /&gt;Error: Modules with different CPU types were found.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I can load custom DLLs and call functions from IPP 6 without problems, so I suspect the problem is the MKL DLLs rather than with my other software (Java and JNA).&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;More pertinent information: I am using Vista x64 SP1 and Visual Studio 2008 SP1. I had to comment out the BUFLIB line in the makefile to get the MKL custom DLLs to build.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Any help would be greatly appreciated.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Albert&lt;/DIV&gt;</description>
    <pubDate>Mon, 12 Jan 2009 10:19:34 GMT</pubDate>
    <dc:creator>fullung</dc:creator>
    <dc:date>2009-01-12T10:19:34Z</dc:date>
    <item>
      <title>Problems with Intel MKL 10.1 custom DLLs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-Intel-MKL-10-1-custom-DLLs/m-p/868079#M8157</link>
      <description>Hello all
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I am having some problems with the Intel MKL 10.1 custom DLL builder.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Neither the 32-bit nor the 64-bit DLLs seem to work.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I run "nmake ia32" inside the VS2008 Command Prompt. If I open this DLL with Dependency Walker, everything seems fine. However, when I try to load this DLL in my application (Java, using the JNA library), the following error dialog appears:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;---------------------------&lt;BR /&gt;Microsoft Visual C++ Runtime Library&lt;BR /&gt;---------------------------&lt;BR /&gt;Runtime Error!&lt;BR /&gt;Program: C:\Program Files (x86)\Java\jdk1.6.0_06\bin\javaw.exe&lt;BR /&gt;R6034&lt;BR /&gt;An application has made an attempt to load the C runtime library incorrectly.&lt;BR /&gt;Please contact the application's support team for more information.&lt;BR /&gt;---------------------------&lt;BR /&gt;OK   &lt;BR /&gt;---------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;With the 64-bit DLL built with "nmake em64t", I also get an error when JNA tries to load it. When I examine this DLL in the 64-bit version of Dependency Walker, it seems the DLL is linked to 64-bit versions of the system libraries, except for being linked to a 32-bit version of msvcr90. I thought this might be a problem with Dependency Walker, but if I examine other MKL DLLs, it finds them to be linked to the 64-bit version of msvcr90. The Dependency Walker error in this case is:&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.&lt;BR /&gt;Error: Modules with different CPU types were found.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I can load custom DLLs and call functions from IPP 6 without problems, so I suspect the problem is the MKL DLLs rather than with my other software (Java and JNA).&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;More pertinent information: I am using Vista x64 SP1 and Visual Studio 2008 SP1. I had to comment out the BUFLIB line in the makefile to get the MKL custom DLLs to build.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Any help would be greatly appreciated.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Albert&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Jan 2009 10:19:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-Intel-MKL-10-1-custom-DLLs/m-p/868079#M8157</guid>
      <dc:creator>fullung</dc:creator>
      <dc:date>2009-01-12T10:19:34Z</dc:date>
    </item>
  </channel>
</rss>

