Developer Guide

Developer Guide for Intel® oneAPI Math Kernel Library Linux*

ID 766690
Date 10/31/2024
Public
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.