Developer Guide

Developer Guide for Intel® oneAPI Math Kernel Library Linux*

ID 766690
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Linking with System Libraries

To use the Intel® oneAPI Math Kernel Library (oneMKL) FFT, Trigonometric Transform, or Poisson, Laplace, and HelmholtzSolver routines, link also the math support system library by adding "-lm" to the link line.

The libiomp5 library relies on the native pthread library for multi-threading. Any time libiomp5 is required, add -lpthreadto your link line afterwards (the order of listing libraries is important).

The libtbb library relies on the compiler libstdc++ library for C++ support. Any time libtbb is required, add -lstdc++ to your link line afterwards (the order of listing libraries is important).

NOTE:

To link with Intel® oneAPI Math Kernel Library (oneMKL) statically using a GNU compiler, link also the system librarylibdl by adding -ldl to your link line. The Intel compiler always passes -ldl to the linker.