Repository navigation
1.5.0
·
283 commits
to master
since this release
Overview
This release migrates mkl_random to a modern Meson-based build system, replacing the legacy setuptools/setup.py pipeline. It also introduces a command-line interface for patching NumPy's random with MKL-accelerated implementations, and adds compatibility with NumPy 2.5.
Highlights
🏗️ New Build System
- Migrated from
setuptoolstomeson-python, removingsetup.pyin favor ofmeson.build, aligningmkl_randomwith the build system used by NumPy and SciPy - MKL is now discovered via CMake, and
ninja/cmakeare formal build requirements
🆕 NumPy random patching CLI
- Added
python -m mkl_random --patch install/uninstall/statusfor persistent NumPy random patching across all Python sessions - Added
python -m mkl_random --with-numpy-patch <command>for one-shot execution of a command with MKL-accelerated random
🔧 NumPy 2.5 compatibility
- Updated
mkl_randomand its test suite to work with NumPy 2.5, replacing APIs deprecated upstream
Python Version Support
- ✅ Python 3.10, 3.11, 3.12, 3.13, 3.14
Detailed Changes
Added
- Added CLI patch management for NumPy random with persistent install/status/uninstall and one-shot command patching via
python -m mkl_random --patch <command>andpython -m mkl_random --with-numpy-patch <command>gh-133
Changed
- Removed
numpy-basedependency andUSE_NUMPY_BASEenvironment variable from conda recipe gh-124 - Migrated the build system from
setuptoolstomeson-python, removingsetup.pyin favor ofmeson.buildgh-113
Fixed
- Fixed compatibility with NumPy 2.5 by replacing the deprecated in-place array
shapeassignment withreshape, and by replacing the deprecatednumpy.testing.suppress_warningsusage in tests withpytest.warnsgh-137 - Fixed a constant integer overflow in
irk_rand_uint32_vecby declaring theshiftvariable asnpy_uint32instead ofnpy_int32, so2**31no longer overflows a signed 32-bit integer (behavior is unchanged as all downstream uses rely on modulo-2^32 arithmetic) gh-156
Contributors
- Nikita Grigorian (@ndgrigorian)
- Anton Volkov (@antonwolfy)
- Jordan Harlow (@jharlow-intel)
New Contributors
- Vladislav Perevezentsev (@vlad-perevezentsev)
Full Changelog: 1.4.2...1.5.0