Package implementing NumPy's UFuncs based on SVML and MKL VML
Repo IntelPython/mkl_umath, read from GitHub 12 h ago. IntelPython has not joined Take My Repo.
This release adds Python 3.15 support and enables free-threaded (GIL-disabled) CPython builds. It also fixes an ImportError when built with meson-python >= 0.22, the Windows icx build against NumPy >= 2.4.4, absolute returning -NaN for +NaN input, and two reference-counting bugs on the module initialization error paths. Building from source now requires a newer Cython.
๐ Python 3.15 Support
๐งต Free-Threaded CPython
freethreading_compatible=True, and _ufuncs declares Py_MOD_GIL_NOT_USED, so importing mkl_umath no longer re-enables the GILpython-gil constraint from the conda recipes that pinned mkl_umath to GIL-enabled Python 3.14 builds๐ ๏ธ Build Fixes
ImportError on Linux/macOS when built with meson-python >= 0.22, which strips the $ORIGIN RPATH Meson auto-inserts for internal link_with dependenciesicx against NumPy >= 2.4.4๐ Bug Fixes
absolute (float32/float64) no longer returns -NaN for +NaN input on the scalar fallback pathโ ๏ธ Build Requirement Changes
Cython raised to 3.1.0 (first release providing the freethreading_compatible directive)freethreading_compatible=True and _ufuncs declares Py_MOD_GIL_NOT_USED, so importing mkl_umath no longer re-enables the GIL gh-255Cython requirement to 3.1.0, the first release providing the freethreading_compatible directive gh-255coverity/README.md documenting the known Cython-boilerplate false positives and the scan review checklist gh-266absolute (float32/float64) returning -NaN for +NaN input on the scalar fallback path (same issue as numpy/numpy@dc478c58b9, gh-31433) gh-269ImportError on Linux/macOS when built with meson-python >= 0.22, which strips the $ORIGIN RPATH Meson auto-inserts for internal link_with dependencies gh-275icx against NumPy >= 2.4.4, where npy_math.h fails to compile because NumPy's complex types no longer use the UCRT _Dcomplex for icx gh-265python-gil constraint from the conda recipes, which pinned mkl_umath to GIL-enabled Python 3.14 builds gh-255Full Changelog: 0.5.0...0.6.0
This release migrates mkl_umath to a modern Meson-based build system, replacing the legacy scikit-build/CMake pipeline. It also introduces a command-line interface for patching NumPy's umath with MKL-accelerated implementations.
๐๏ธ New Build System
scikit-build to meson-python, removing setup.py and CMakeLists.txt in favor of meson.build, aligning mkl_umath with the build system used by NumPy and SciPyninja/cmake are formal build requirementsOPTIMIZATION_REPORT/MKL_THREADING build options to opt_report/mkl_threading๐ NumPy umath patching CLI
python -m mkl_umath --patch install/uninstall/status for persistent NumPy umath patching across all Python sessionspython -m mkl_umath --with-numpy-patch <command> for one-shot execution of a command with MKL-accelerated umathpython -m mkl_umath --patch <command> and python -m mkl_umath --with-numpy-patch <command> gh-216numpy-base dependency and USE_NUMPY_BASE environment variable from conda recipe gh-200scikit-build to meson-python, removing setup.py and CMakeLists.txt in favor of meson.build gh-166OPTIMIZATION_REPORT and MKL_THREADING build options to opt_report and mkl_threading, now passed as meson setup args (e.g. -Csetup-args=-Dopt_report=true and -Csetup-args=-Dmkl_threading=tbb_thread) gh-166Full Changelog: 0.4.3...0.5.0
This is a bugfix release that updates mkl_umath patching to work with changes to the NumPy Cython API introduced in NumPy 2.5. It also fixes a bug where patching could attempt to free null pointers when the patching process fails midway.
mkl_umath patching to work with changes to NumPy Cython API present in NumPy 2.5 gh-226Full Changelog: 0.4.2...0.4.3
This minor release adds a build option for setting MKL_THREADING to the package, in order to enable builds using exclusively the conda-forge channel.
MKL_THREADING in CMake gh-217This is a bugfix release that resolves dependency issues with pip check by removing the PyPI mkl runtime dependency. This change improves compatibility with downstream packages and package management tools.
๐ง Dependency Fix
mkl as a declared runtime dependency to avoid pip check failuresmkl as runtime dependency to avoid possible pip check failures gh-202Full Changelog: 0.4.0...0.4.1
This release introduces a modernized NumPy patching API, improves build system compatibility with the latest Intel compilers, and resolves stability issues with PyPI NumPy. Python 3.9 support has been dropped, and dependency management has been streamlined by removing mkl-service in favor of direct mkl usage.
๐ Improved NumPy Patching API
patch_numpy_umath() and restore_numpy_umath() functions for cleaner NumPy integrationuse_in_numpy() and restore() functions๐งต Enhanced Threading Stability
intel_thread for MKL threading๐ง Build System Improvements
USE_NUMPY_BASE environment variable๐ฆ Cleaner Package Structure
__init__.py with proper __all__ definitionmkl-service in favor of direct mkl dependencyโ ๏ธ Breaking Changes
use_in_numpy() and restore() are deprecated and will be removed in a future versionpatch_numpy_umath and restore_numpy_umath functions for patching NumPy, and improved the patching implementation gh-170__init__.py and add __all__ to module gh-177USE_NUMPY_BASE environment variable gh-181mkl-service as a dependency in favor of mkl, as mkl-service is not used in mkl_umath directly gh-188mkl_umath now uses intel_thread for MKL threading to fix transient crashes during Python teardown when used in an environment with PyPI NumPy gh-171use_in_numpy and restore patching functions, to be removed in a future version. Using patch_numpy_umath and restore_numpy_umath is recommended instead gh-170Full Changelog: 0.3.1...0.4.0