Using the Single Dynamic Library
You can simplify your link line through the use of the
Single Dynamic Library (SDL).
Intel® oneAPI Math Kernel Library
To use SDL, place
libmkl_rt.dylib
on your link line. For example:
icс application.c -L$MKLPATH -Wl,-rpath,$MKLPATH -lmkl_rt
Here
MKLPATH=$MKLROOT/lib
.
SDL enables you to select the interface and threading library for
at run time. By default, linking with SDL provides:
Intel® oneAPI Math Kernel Library
- Intel LP64 interface on systems based on the Intel® 64 architecture
- Intel threading
To use other interfaces or change threading preferences, including use of the sequential version of
, you need to specify your choices using functions or environment variables as explained in sectionDynamically Selecting the Interface and Threading Layer.
Intel® oneAPI Math Kernel Library
Intel® oneAPI Math Kernel Library
Intel® oneAPI Math Kernel Library