Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
6696 Discussions

Problems with Intel MKL 10.1 custom DLLs

fullung
Beginner
162 Views
Hello all

I am having some problems with the Intel MKL 10.1 custom DLL builder.

Neither the 32-bit nor the 64-bit DLLs seem to work.

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:

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!
Program: C:\Program Files (x86)\Java\jdk1.6.0_06\bin\javaw.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.
---------------------------
OK
---------------------------

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:

Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.

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).

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.

Any help would be greatly appreciated.

Regards,

Albert
0 Kudos
0 Replies
Reply