Intel® oneAPI Math Kernel Library (oneMKL) is a highly optimized, extensively threaded, and vectorized numerical library for mathematical functions. It provides a wide range of routines for linear algebra (BLAS, LAPACK, ScaLAPACK), fast Fourier transforms (FFT), vector math, and more. When used with Python libraries like NumPy and SciPy, it significantly accelerates numerical computations by providing highly optimized CPU-specific implementations. The `mkl` PyPI package, version 2025.3.1, typically provides the runtime components required for other Python packages to link against and utilize MKL, with updates usually following major oneAPI releases.
pip install mklVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to install the MKL runtime and verify that it is being used by common numerical libraries like NumPy. It checks the MKL Python package version, detailed MKL service info, and then inspects NumPy's configuration to confirm MKL linkage before performing a basic benchmark.
Ensure only one BLAS/LAPACK provider is active in your environment, or explicitly configure your numerical libraries to use a specific backend. Using a tool like `conda` can help manage these dependencies more robustly.
After installation, use `import numpy; numpy.__config__.show()` or `import mkl; mkl.service.get_mkl_info()` to confirm MKL linkage. Ensure your Python environment's `PATH` (Windows) or `LD_LIBRARY_PATH` (Linux/macOS) correctly points to MKL libraries if issues persist.
Prefer a consistent installation method for MKL and related Python numerical libraries. For example, use all `pip`, all `conda`, or rely solely on Intel's official distributions to avoid environment conflicts.
No dependency data recorded yet.