Skip to content

2.9.0

Latest

Choose a tag to compare

@antonwolfy antonwolfy released this 02 Oct 16:56
· 63 commits to master since this release
6cc5780

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 _mklinit declares Py_MOD_GIL_NOT_USED, so importing mkl no longer re-enables the GIL
  • Removed the python-gil constraint from the conda recipes that pinned mkl-service to GIL-enabled Python 3.14 builds

🧮 MKLMemory Class

  • Exposed mkl_malloc and related MKL calls to Python via the new MKLMemory class, which supports the Python buffer protocol

🔢 ILP64 Build Option

  • Added a new ilp64 build option to initialize MKL with the ILP64 interface, which also resolves some build warnings

⚠️ Build Requirement Changes

  • Minimum build-time Cython raised to 3.1.0 (first release providing the freethreading_compatible directive)
  • 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=True and _mklinit declares Py_MOD_GIL_NOT_USED, so importing mkl no longer re-enables the GIL gh-213
  • Added support for new build option ilp64 to initialize MKL with the ILP64 interface, which also resolves some build warnings gh-184
  • Exposed mkl_malloc and related MKL calls to Python via MKLMemory class which supports the Python buffer protocol gh-182

Changed

  • Raised the minimum build-time Cython requirement to 3.1.0, the first release providing the freethreading_compatible directive 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 MKLMemory extension gh-182

Removed

  • Removed the python-gil constraint from the conda recipes, which pinned mkl-service to GIL-enabled Python 3.14 builds gh-213
  • Removed the IS_PY3K macro and the dead Python 2 module-init branch from _mklinitmodule.c, since the project requires Python 3.10+ gh-235

Contributors

New Contributors

Full Changelog: 2.8.0...2.9.0