- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have installed a trial of intel parallel composer. i have already referred to the following resources:
- https://software.intel.com/sites/default/files/article/184496/intel-mkl-configuring-in-microsoft-visual-studio.pdf
- https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/506620
additionally, i have ran: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.2.180\windows\mkl\bin\mklvars.bat as administrator
after following these instructions and suggestions, visual studio says it still cannot find the header file mkl.h even though the additional include directories property in the visual studio project is: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.2.180\windows\mkl\include and it still says it cannot find the header file when i add it to the headers in the visual studio project
after fully qualifying the header in the source file: #include "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.2.180\windows\mkl\include\mkl.h" the project will compile, but will not link: it says 'unresolved external' for any MKL function
- are there any other resources online for compiling MKL in visual studio 2015 on windows 10?
- is this the right path: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.2.180\windows\mkl\?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ian,
It seem the integration MKL to MSVS environment haven't worked as expected. I will check with the MSVS2015 installation
For the error unresolved external' , please check if MKL option was switch by
If you installed the integration component, you can configure your project for use with the Intel MKL as follows: Go to Project » Properties » Libraries » Use Intel Math Kernel Library and select Parallel, Sequential, or Cluster as appropriate.
If the switch don't work, you may solve the problem by adding mkl header file path, library and library path manually
1. Select Project » Properties » Linker » General » Additional Library Directories. Add the architecture specific lib folder, for example, \lib\ia32.
2. Select Project » Properties » Linker » Input » Additional Dependencies. Insert
mkl_intel_c.lib mkl_sequential.lib mkl_core.lib if 32bit application.
mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib if 64bit application
Please let us know if any issue.
About debug the link, you may open the verbose by property => C++ => General => Supress Startup banner to NO
And property page => Linker=> general => Show progress to For Libraries Searched (/VERBOSE:Lib).
Clean your project and rebuild it , then check the buildlog to see what is going wrong.
Best Regards,
Ying
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you turn on the swtich in th eProject proeprties to use the MKL libraries?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i set the 'Use Intel MKL' property to 'Parallel'. is this the switch you are talking about?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ian,
It seem the integration MKL to MSVS environment haven't worked as expected. I will check with the MSVS2015 installation
For the error unresolved external' , please check if MKL option was switch by
If you installed the integration component, you can configure your project for use with the Intel MKL as follows: Go to Project » Properties » Libraries » Use Intel Math Kernel Library and select Parallel, Sequential, or Cluster as appropriate.
If the switch don't work, you may solve the problem by adding mkl header file path, library and library path manually
1. Select Project » Properties » Linker » General » Additional Library Directories. Add the architecture specific lib folder, for example, \lib\ia32.
2. Select Project » Properties » Linker » Input » Additional Dependencies. Insert
mkl_intel_c.lib mkl_sequential.lib mkl_core.lib if 32bit application.
mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib if 64bit application
Please let us know if any issue.
About debug the link, you may open the verbose by property => C++ => General => Supress Startup banner to NO
And property page => Linker=> general => Show progress to For Libraries Searched (/VERBOSE:Lib).
Clean your project and rebuild it , then check the buildlog to see what is going wrong.
Best Regards,
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ying, thanks for your help in resolving this issue. Below I have enumerated the steps I took to get a new empty project compiled in VS 2015 on windows 10:
- new empty project
- use intel compiler option in project context menu
- use intel mkl project property: Parallel
- C/C++ general > additional include directories: C:\Program Files (x86)\IntelSWTools\parallel_studio_xe_2016.2.055\compilers_and_libraries_2016\windows\mkl\include
- compilation error on #include "mkl.h"
- / GS / W3 / Zc:wchar_t / I"C:\Program Files (x86)\IntelSWTools\parallel_studio_xe_2016.2.055\compilers_and_libraries_2016\windows\mkl\include" / ZI / Od / Fd"x64\Debug\vc140.pdb" / D "_MBCS" / Zc : forScope / RTC1 / MDd / Fa"x64\Debug\" /EHsc /nologo /Fo"x64\Debug\" /Qprof-dir "x64\Debug\" /Fp"x64\Debug\oculto_test.pch"
- noticed 64 bit related flag values, and changed visual studio 'solution platforms' option from default x86 to x64 and the project compiled
- LINK : fatal error LNK1104: cannot open file 'mkl_rt_dll.lib'
- added mkl_rt to linker > input > additional dependencies
- 1>ipo: : error #11018: Cannot open mkl_intel_c.lib
- 1>LINK : fatal error LNK1104 : cannot open file 'mkl_intel_c.lib'
- linker > general > additional library directories: C:\Program Files (x86)\IntelSWTools\parallel_studio_xe_2016.2.055\compilers_and_libraries_2016\windows\mkl\lib\intel64_win
- same error
- linker > general > additional library directories: C:\Program Files (x86)\IntelSWTools\parallel_studio_xe_2016.2.055\compilers_and_libraries_2016\windows\mkl\lib\ia32
- rebuild all succeeded
#include "mkl.h" int main() { vcAbs(0, 0, 0); // trivial MKL function call for testing purposes return 0; }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page