Visible to Intel only — GUID: GUID-AC51C2E2-C2DA-4871-94B5-F8A0B4744259
Visible to Intel only — GUID: GUID-AC51C2E2-C2DA-4871-94B5-F8A0B4744259
Configuring the Microsoft Visual C/C++* Development System to Link with Intel® MKL
Steps for configuring Microsoft Visual C/C++* development system for linking with Intel® oneAPI Math Kernel Library (oneMKL) depend on whether you installed the C++ Integration(s) in Microsoft Visual Studio* component of the Intel® Parallel Studio XE Composer Edition:
- If you installed the integration component, see Automatically Linking Your Microsoft Visual C/C++* Project with Intel® MKL.
- If you did not install the integration component or need more control over Intel® oneAPI Math Kernel Library libraries to link, you can configure the Microsoft Visual C++* development system by performing the following steps. Though some versions of the Visual C++* development system may vary slightly in the menu items mentioned below, the fundamental configuring steps are applicable to all these versions.
In Solution Explorer, right-click your project and click Properties
Select Configuration Properties > VC++ Directories
Select Include Directories. Add the directory for the Intel® oneAPI Math Kernel Library include files, that is,<mkl directory>\include
Select Library Directories. Add architecture-specific directories for Intel® oneAPI Math Kernel Library and OpenMP* libraries,
for example: <mkl directory>\lib\ia32 and <compiler directory>\windows\compiler\lib\ia32_winSelect Executable Directories. Add architecture-specific directories with dynamic-link libraries:
- For OpenMP* support, for example: <compiler directory>\windows\redist\ia32_win\compiler
- For Intel® oneAPI Math Kernel Library (only if you link dynamically), for example:<mkl directory>\redist\ia32
- Select Configuration Properties > Custom Build Setup > Additional Dependencies. Add the libraries required, for example, mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib