Math Kernel Library Developer Guide

Using the Single Dynamic Library

You can simplify your link line through the use of the Intel® oneAPI Math Kernel Library Single Dynamic Library (SDL).

To use SDL, place libmkl_rt.so on your link line. For example:

icс application.c -lmkl_rt

SDL enables you to select the interface and threading library for Intel® oneAPI Math Kernel Library at run time. By default, linking with SDL provides:

To use other interfaces or change threading preferences, including use of the sequential version of Intel® oneAPI Math Kernel Library, you need to specify your choices using functions or environment variables as explained in sectionDynamically Selecting the Interface and Threading Layer.

Note

Intel® oneAPI Math Kernel Library SDL (mkl_rt) does not support DPC++ APIs. If your application requires support of Intel® oneAPI Math Kernel Library DPC++ APIs, refer to Intel® oneAPI Math Kernel Library Link-line Advisor to configure your link command.