Tells the compiler to link to certain libraries in the Intel® oneAPI Math Kernel Library (oneMKL). On Windows systems, you must specify this option at compile time.
Linux: | -qmkl[=lib] |
macOS: | -qmkl[=lib] |
Windows: | /Qmkl[:lib] |
lib |
Indicates which oneMKL library files should be linked. Possible values are:
|
OFF |
The compiler does not link to the oneMKL library. |
This option tells the compiler to link to certain libraries in the Intel® oneAPI Math Kernel Library (oneMKL).
On Linux* and macOS* systems, dynamic linking is the default when you specify -mkl. To link with oneMKL statically, you must specify:
-qmkl -static-intel
On Windows* systems, static linking is the default when you specify /Qmkl. To link with oneMKL dynamically, you must specify:
/Qmkl /MD
For more information about using oneMKL libraries, see the article in Intel® Developer Zone titled: Intel® oneAPI Math Kernel Library Link Line Advisor, which is located in https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/link-line-advisor.html.
On Windows* systems, this option adds directives to the compiled code, which the linker then reads without further input from the driver. On Linux* and macOS* systems, the driver must add the library names explicitly to the link command.
If you specify option [q or Q]mkl, or -qmkl=parallel or /Qmkl:parallel, and you also specify option [Q]tbb, the compiler links to the standard threaded version of oneMKL.
However, if you specify [q or Q]mkl, or -qmkl=parallel or /Qmkl:parallel, and you also specify option [Q]tbb and option [q or Q]openmp, the compiler links to the OpenMP* threaded version of oneMKL.
Visual Studio: None
Eclipse: Performance Library Build Components > Use Intel® oneAPI Math Kernel Library
Xcode: Performance Library Build Components > Use Intel® oneAPI Math Kernel Library
Linux and macOS*: -mkl (this is a deprecated option)