To configure Eclipse* IDE C/C++ Development Tools
(CDT) 3.x to link with Intel(R) Math Kernel Library (Intel(R) MKL), follow the instructions below:
-
For Standard Make projects:
- Go to
C/C++ Include Paths and Symbols
property page and set the Intel MKL include path to
<mkl directory>/include.
- Go to
C/C++ Project Paths
>
Libraries
and set the Intel MKL libraries to link with your applications, for example,
<mkl directory>/lib/intel64/libmkl_intel_lp64.a,
<mkl directory>/lib/intel64/libmkl_intel_thread.a,
and
<mkl directory>/lib/intel64/libmkl_core.a.
Note that with the Standard Make, the above settings are needed for the CDT internal functionality only. The compiler/linker will not automatically pick up these settings and you will still have to specify them directly in the makefile.
-
For Managed Make projects, you can specify settings for a particular build. To do this:
- Go to
C/C++ Build
>
Tool Settings.
All the settings you need to specify are on this page. Names of the particular settings depend on the compiler integration and therefore are not explained below.
- If the compiler integration supports include path options, set the Intel MKL include path to
<mkl directory>/include.
- If the compiler integration supports library path options, set a path to the Intel MKL libraries for the target architecture, such as
<mkl directory>/lib/intel64.
- Specify the names of the Intel MKL libraries to link with your application, for example,
mkl_intel_lp64, mkl_intel_thread_lp64, mkl_core,
and
iomp5
(compilers typically require library names rather than library file names, so omit the
"lib"
prefix and
"a"
extension).