Quantcast
Channel: Intel® Software - Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 3005

Basic linking problem with MKL library

$
0
0

Hi everybody,

Long ago I used to use mkl library 9.1.027, and used it with great joy to run some programs that included a lot of operations on matrices. And it was easy to include in the program, just right click projects->properties and include:

c/c++-->general-->Additional include directories        C:\Program Files\Intel\MKL\9.1.027\include 

linker-->general-->Additional library directories           C:\Program Files\Intel\MKL\9.1.027\ia32\lib

linker-->input-->additional dependencies                    libguide40.lib mkl_c.lib 

 

and in the code to use

extern "C" {//
#include"mkl_cblas.h"
#include"mkl_lapack.h"
#include "mkl_service.h"
#include "mkl.h"
}//

and the programs worked and the library performed really well. Now i would like to see if there are any improvements that could benefit my programs, and so i downloaded the free mkl library w_mkl_2017.3.210.exe,  installed it (got something like IntelSWTools\compilers_and_libraries_2017.4.210), and went to right click projects->properties, removed the include that were used for mkl library 9.1.027. Then per instruction from the website first i went Configuration Properties->Intel Performance Libraries and set the Use Intel MKL option to Parallel, tried to compile program in Visual studio, and it compiled but when I run the program it says "The application was unable to start correctly (0xc000007b). Click OK to close the application". Then I used  the command line tool to give me the dependencies to use, to input manually, so I need static linking, for windows, ia32 architecture, openmp, in visual studio, and the tool gave me what to use and I placed the suggestions (hopefully in the right place) but the results were the same, I got the exact same message.

As above I added:

c/c++-->general-->Additional include directories        C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\mkl\include

linker-->general-->Additional library directories          C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\mkl\lib\ia32

                                                            C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.4.210\windows\mkl\..\compiler\lib\ia32

linker-->input-->additional dependencies                    mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib

I have windows 7 ultimate and for Visual Studio 2013 Ultimate. 

Any and all help how to  make the mkl library run is more than welcome. It can be the automatic linking with Intel performance libraries or by manually setting the needed field (I would prefer this one but anything is ok).

 

Thanks a lot in advance.


Viewing all articles
Browse latest Browse all 3005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>