To reference how to use the library in your application, use this guide in conjunction with the following documents:
You can simplify your link line through the use of the Intel MKL Single Dynamic Library (SDL).
To use SDL, place libmkl_rt.so on your link line. For example:
To use the Intel MKL FFT, Trigonometric Transform, or Poisson, Laplace, and HelmholtzSolver routines, link also the math support system library by adding "-lm" to the link line.
The MKL_DYNAMIC environment variable enables Intel MKL to dynamically change the number of threads.
When running, Intel MKL allocates and deallocates internal buffers to facilitate better performance. However, in some cases this behavior may result in memory leaks.
To avoid memory leaks, you can do either of the following:
The following examples illustrate the use of the MKL_CBWR environment variable. The first command in each list sets Intel MKL to run in the CNR mode based on the default dispatching for your platform. The other two commands in each list are equivalent and set the CNR branch to Intel AVX.
For the bash shell:
These examples illustrate linking of an application under the following conditions:
To improve performance of Intel MKL on Intel Xeon Phi coprocessors, use the following tips, which are specific to Intel MIC Architecture. General performance improvement recommendations provided in Coding Techniques also apply.
For more information, see the Knowledge Base article at http://software.intel.com/en-us/articles/performance-tips-of-using-intel-mkl-on-intel-xeon-phi-coprocessor.