Repository navigation
Overview
This release adds Python 3.15 support and enables free-threaded (GIL-disabled) CPython builds. It also introduces a new MKLMemory class that exposes MKL-allocated memory through the Python buffer protocol, and a new ilp64 build option for initializing MKL with the ILP64 interface. Building from source now requires a newer Cython and a C11-atomics-capable compiler.
Highlights
🐍 Python 3.15 Support
- Added support for Python 3.15
🧵 Free-Threaded CPython
- The Cython extension is now compiled with
freethreading_compatible=True, and_mklinitdeclaresPy_MOD_GIL_NOT_USED, so importingmklno longer re-enables the GIL - Removed the
python-gilconstraint from the conda recipes that pinnedmkl-serviceto GIL-enabled Python 3.14 builds
🧮 MKLMemory Class
- Exposed
mkl_mallocand related MKL calls to Python via the newMKLMemoryclass, which supports the Python buffer protocol
🔢 ILP64 Build Option
- Added a new
ilp64build option to initialize MKL with the ILP64 interface, which also resolves some build warnings
- Minimum build-time
Cythonraised to3.1.0(first release providing thefreethreading_compatibledirective) - Building from source now requires a C11-atomics-capable compiler (on Windows, Visual Studio 2022 17.5 or newer)
Python Version Support
- ✅ Python 3.10, 3.11, 3.12, 3.13, 3.14, 3.15 (including free-threaded builds)
Detailed Changes
Added
- Enabled support of Python 3.15 gh-243
- Added support for free-threaded (GIL-disabled) CPython builds: the Cython extension is compiled with
freethreading_compatible=Trueand_mklinitdeclaresPy_MOD_GIL_NOT_USED, so importingmklno longer re-enables the GIL gh-213 - Added support for new build option
ilp64to initialize MKL with the ILP64 interface, which also resolves some build warnings gh-184 - Exposed
mkl_mallocand related MKL calls to Python viaMKLMemoryclass which supports the Python buffer protocol gh-182
Changed
- Raised the minimum build-time
Cythonrequirement to3.1.0, the first release providing thefreethreading_compatibledirective gh-213 - Building from source now requires a C11-atomics-capable compiler (on Windows, Visual Studio 2022 17.5 or newer), used by the new
MKLMemoryextension gh-182
Removed
- Removed the
python-gilconstraint from the conda recipes, which pinnedmkl-serviceto GIL-enabled Python 3.14 builds gh-213 - Removed the
IS_PY3Kmacro and the dead Python 2 module-init branch from_mklinitmodule.c, since the project requires Python 3.10+ gh-235
Contributors
- Anton Volkov (@antonwolfy)
- Nikita Grigorian (@ndgrigorian)
New Contributors
- Venkata Sai Gireesh Chamarthi (@vchamarthi)
- Vladislav Perevezentsev (@vlad-perevezentsev)
Full Changelog: 2.8.0...2.9.0