Math Kernel Library


Math Kernel Library is a library of optimized math routines for science, engineering, and financial applications. Core math functions include BLAS, LAPACK, ScaLAPACK, sparse solvers, fast Fourier transforms, and vector math.
The library supports Intel processors and is available for Windows, Linux and macOS operating systems.

History

Intel launched the Math Kernel Library on May 9, 2003, and called it blas.lib. The project's development teams are located in Russia and the United States. MKL is bundled with Intel Parallel Studio XE, Intel Cluster Studio XE, Intel C++, Fortran Studio XE products as well as canopy. Standalone versions have not been sold for years to new customers but are now available for free.

License

The library is available free of charge under the terms of Intel Simplified Software License which allow redistribution. Commercial support is available when purchased as a standalone software or as part of Intel Parallel Studio XE or Intel System Studio.

Performance

Intel MKL and other programs generated by the Intel C++ Compiler improve performance with a technique called function multi-versioning: a function is compiled or written for many of the x86 instruction set extensions, and at run-time a "master function" uses the CPUID instruction to select a version most appropriate for the current CPU. However, as long as the master function detects a non-Intel CPU, it almost always chooses the most basic function to use, regardless of what instruction sets the CPU claims to support. This has netted the system a nickname of "cripple AMD" routine since 2009., Intels MKL, which remains the numeric library installed by default along with many pre-compiled mathematical applications on Windows, still significantly underperforms on AMD CPUs by ignoring their supported instruction sets. In older versions, setting the undocumented environment variable could be used to override the vendor string dependent codepath choice and activate supported instructions up to AVX2 on AMD processor based systems resulting in equal or even better performance when compared to Intel CPUs. Since at least Update 1 2020, the workaround does not work anymore.

Details

Functional categories

Intel MKL has the following functional categories: