Math Kernel Library Developer Guide

Selecting Libraries to Link with

To link with Intel® oneAPI Math Kernel Library:

The following table lists Intel® oneAPI Math Kernel Library libraries to link with your application.

 

Interface layer

Threading layer

Computational layer

RTL

Intel® 64 architecture,
static linking

libmkl_intel_lp64.a

libmkl_intel_thread.a

libmkl_core.a

libiomp5.dylib

Intel® 64 architecture,
dynamic linking

libmkl_intel_lp64. dylib

libmkl_intel_thread.dylib

libmkl_core.dylib

libiomp5.dylib

The Single Dynamic Library (SDL) automatically links interface, threading, and computational libraries and thus simplifies linking. The following table lists Intel® oneAPI Math Kernel Library libraries for dynamic linking using SDL. SeeDynamically Selecting the Interface and Threading Layer for how to set the interface and threading layers at run time through function calls or environment settings.

 

SDL

RTL

Intel® 64 architecture

libmkl_rt.dylib

libiomp5.dylib

Use the Link-line Advisor to check whether you need to explicitly link the libiomp5.dylib RTL.

For exceptions and alternatives to the libraries listed above, see Linking in Detail.

See Also