Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7155 Discussions

Problems with MKL in Microsoft Visual Studio

nak52
Beginner
1,435 Views
Hello,
I just got MVS with built in MKL. MKL is linked in the tools>options>fortran>compilers>libraries and includes. As advised I also checked it in project properties>fortran>use intel mkl>parallel

In the subroutine that uses mkl i have
USE MKL95_PRECISION, ONLY: WP => DP
which gives me the following error:
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL95_PRECISION]

Before the USE statement I also inluded:
INCLUDE 'MKL95_PRECISION.mod'
which again didn't help.
What else canI do here?

0 Kudos
1 Solution
Vladimir_Koldakov__I
New Contributor III
1,435 Views
Hello Natalia,

See the document on the web page:
http://software.intel.com/sites/products/documentation/hpc/mkl/win/MKL_UG_config_dev_env/Creating_and_Configuring_the_Intel_Visual_Fortran_Project.htm

Step 7.c: In the Property Pages window, select Configuration Properties > Linker > Input. In the right-hand part of the window, select Additional Dependencies and type the libraries required, for example, for =ia32, type mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib.

Type here mkl_lapack95.lib as well.

Thanks,
Vladimir

View solution in original post

0 Kudos
7 Replies
TimP
Honored Contributor III
1,435 Views
Quoting - nak52
Hello,
I just got MVS with built in MKL. MKL is linked in the tools>options>fortran>compilers>libraries and includes. As advised I also checked it in project properties>fortran>use intel mkl>parallel

In the subroutine that uses mkl i have
USE MKL95_PRECISION, ONLY: WP => DP
which gives me the following error:
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL95_PRECISION]

Before the USE statement I also inluded:
INCLUDE 'MKL95_PRECISION.mod'
which again didn't help.
What else canI do here?

In your installation ........MKLmakefile should help you create the .mod files, if they aren't already present somewhere such as MKLinclude. You may have to move them to a directory which is already on the default INCLUDE path, or modify the INCLUDE path to cover their present location.
0 Kudos
Gennady_F_Intel
Moderator
1,435 Views

the same question was disscussed here
0 Kudos
Vladimir_Koldakov__I
New Contributor III
1,435 Views
Hi nak52,

- add"includeia32" directoryin the Additional Include Directories window.
- add mkl_lapack95.lib library to the project (ensure "ia32lib is in the 'Additional Library Directories')

More details see in thethread:
http://software.intel.com/en-us/forums/showthread.php?t=70693page/1/#106176

Thanks,
Vladimir
0 Kudos
nak52
Beginner
1,435 Views
Hi nak52,

- add"includeia32" directoryin the Additional Include Directories window.
- add mkl_lapack95.lib library to the project (ensure "ia32lib is in the 'Additional Library Directories')

More details see in thethread:
http://software.intel.com/en-us/forums/showthread.php?t=70693page/1/#106176

Thanks,
Vladimir

Hello Vladimir,
Thanks for the link, I am watching closely that discussion. Regarding things that you mentioned to add, I have done that already. Now I am a bit confused with "add mkl_lapack95.lib to the project". I added the mklia32lib path in the additional library directories, apparently it is not the same as "add mkl_lapack95.lib to the project". I would greatly appreciate if you let me know where exactly I should "add mkl_lapack95.lib to the project".
Thanks for your patience
Natalia
0 Kudos
Vladimir_Koldakov__I
New Contributor III
1,436 Views
Hello Natalia,

See the document on the web page:
http://software.intel.com/sites/products/documentation/hpc/mkl/win/MKL_UG_config_dev_env/Creating_and_Configuring_the_Intel_Visual_Fortran_Project.htm

Step 7.c: In the Property Pages window, select Configuration Properties > Linker > Input. In the right-hand part of the window, select Additional Dependencies and type the libraries required, for example, for =ia32, type mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib.

Type here mkl_lapack95.lib as well.

Thanks,
Vladimir
0 Kudos
nak52
Beginner
1,435 Views
Quoting - tim18
In your installation ........MKLmakefile should help you create the .mod files, if they aren't already present somewhere such as MKLinclude. You may have to move them to a directory which is already on the default INCLUDE path, or modify the INCLUDE path to cover their present location.

The .mod files are in its place. There is something in the installation of mkl thatI am totallly missing. Compared to this installing imsl was a breeze. Still waitingfor some suggestions to make it work.
0 Kudos
nak52
Beginner
1,435 Views
Hello Natalia,

See the document on the web page:
http://software.intel.com/sites/products/documentation/hpc/mkl/win/MKL_UG_config_dev_env/Creating_and_Configuring_the_Intel_Visual_Fortran_Project.htm

Step 7.c: In the Property Pages window, select Configuration Properties > Linker > Input. In the right-hand part of the window, select Additional Dependencies and type the libraries required, for example, for =ia32, type mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib.

Type here mkl_lapack95.lib as well.

Thanks,
Vladimir

Vladimir,
Many thanks for your help.
Natalia
0 Kudos
Reply