Skip to main content

Conda package Build using pip and pre-release NumPy OpenSSF Scorecard Coverity Scan Build Status

mkl_umath

mkl_umath._ufuncs exposes Intel® OneAPI Math Kernel Library (OneMKL) powered version of loops used in the patched version of NumPy, that used to be included in Intel® Distribution for Python*.

Patches were factored out per community feedback (NEP-36).

mkl_umath started as a part of Intel® Distribution for Python* optimizations to NumPy, and is now being released as a stand-alone package. It can be installed into conda environment using:

   conda install -c https://software.repos.intel.com/python/conda mkl_umath

To install mkl_umath PyPI package please use the following command:

   python -m pip install --index-url https://software.repos.intel.com/python/pypi --extra-index-url https://pypi.org/simple mkl_umath

If command above installs NumPy package from the PyPI, please use the following command to install Intel optimized NumPy wheel package from Intel PyPI Cloud:

   python -m pip install --index-url https://software.repos.intel.com/python/pypi --extra-index-url https://pypi.org/simple mkl_umath numpy==<numpy_version>

where <numpy_version> should be the latest version from https://software.repos.intel.com/python/conda/.


Patching Mechanisms

mkl_umath provides convenient patch methods to enable MKL-accelerated umath operations in NumPy with or without modifying your code.

CLI Quickstart

Persistent patch (all Python sessions)

# Install
python -m mkl_umath --patch install

# Status (exit code: 0 = installed, 1 = not installed)
python -m mkl_umath --patch status

# Remove
python -m mkl_umath --patch uninstall

Verify patch state

python -c "import mkl_umath; print(f'mkl_umath.is_patched(): {mkl_umath.is_patched()}')"

One-shot patch (single command only)

# Script
python -m mkl_umath --with-numpy-patch my_script.py

# Pytest
python -m mkl_umath --with-numpy-patch -m pytest tests/

# One-liner
python -m mkl_umath --with-numpy-patch -c "import mkl_umath; print(f\"mkl_umath.is_patched(): {mkl_umath.is_patched()}\")"

# Non-Python command
python -m mkl_umath --with-numpy-patch -- <command> [args...]

Programmatic Quickstart

import mkl_umath
import numpy

mkl_umath.patch_numpy_umath()
print(mkl_umath.is_patched())
# run your accelerated numpy workloads here!
mkl_umath.restore_numpy_umath()
import mkl_umath
import numpy
with mkl_umath.mkl_umath():
   # run your accelerated workloads here!
   pass

Building from source

A C compiler, Intel® oneAPI Math Kernel Library (oneMKL), and NumPy are required to build mkl_umath from source.

Executing

CC=icx python -m pip install .

will pull in the required build dependencies, including mkl-devel and numpy, and build mkl_umath.

If you already have mkl and numpy installed (from your system or a conda environment) and want to reuse them instead of pulling fresh copies into an isolated build, first install the build dependencies:

pip install meson-python ninja cmake "cython>=3.1.0" numpy mkl-devel

then build against the existing installation with:

CC=icx pip install --no-build-isolation --no-deps .

Metadata

Release files for mkl-umath 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for mkl-umath 0.6.0
File Actions
mkl_umath-0.6.0-0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for mkl_umath-0.6.0-0-cp314-cp314t-win_amd64.whl
mkl_umath-0.6.0-0-cp314-cp314t-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Details for mkl_umath-0.6.0-0-cp314-cp314t-manylinux_2_28_x86_64.whl
mkl_umath-0.6.0-0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for mkl_umath-0.6.0-0-cp314-cp314-win_amd64.whl
mkl_umath-0.6.0-0-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for mkl_umath-0.6.0-0-cp314-cp314-manylinux_2_28_x86_64.whl
mkl_umath-0.6.0-0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for mkl_umath-0.6.0-0-cp313-cp313-win_amd64.whl
mkl_umath-0.6.0-0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for mkl_umath-0.6.0-0-cp313-cp313-manylinux_2_28_x86_64.whl
mkl_umath-0.6.0-0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for mkl_umath-0.6.0-0-cp312-cp312-win_amd64.whl
mkl_umath-0.6.0-0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for mkl_umath-0.6.0-0-cp312-cp312-manylinux_2_28_x86_64.whl
mkl_umath-0.6.0-0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for mkl_umath-0.6.0-0-cp311-cp311-win_amd64.whl
mkl_umath-0.6.0-0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for mkl_umath-0.6.0-0-cp311-cp311-manylinux_2_28_x86_64.whl
mkl_umath-0.6.0-0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for mkl_umath-0.6.0-0-cp310-cp310-win_amd64.whl
mkl_umath-0.6.0-0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for mkl_umath-0.6.0-0-cp310-cp310-manylinux_2_28_x86_64.whl

Total release size: 2.0 MB

Release files / mkl_umath-0.6.0-0-cp314-cp314t-win_amd64.whl

Download URL mkl_umath-0.6.0-0-cp314-cp314t-win_amd64.whl
Size 203.0 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
7e338f67a07b5269e731967d4826a6f4dc81d63ef48f809af3313e67dc9c148c
BLAKE2b-256 checksum
How to use checksums
2069115d8743a81268623bd094e3ca9b4da02d19ea7497e8f869ac36a3dd7976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL mkl_umath-0.6.0-0-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 144.4 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
3db02395009b4b65f3edd7f0b1aab6c70c20f3461005ad80205c764a23fd38a8
BLAKE2b-256 checksum
How to use checksums
1d2bf2b114b5b15f10ab7354b35759223b0dc688f6b7f57c55909feaee1af511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp314-cp314-win_amd64.whl

Download URL mkl_umath-0.6.0-0-cp314-cp314-win_amd64.whl
Size 196.5 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
9231aeeee59f9ec30098fe0227ceda62b34610b67a43db299a78e4151907ee2a
BLAKE2b-256 checksum
How to use checksums
7ef9aa8b1891cf7d01822ed21b6852bcfe6f62b97d53cd6c8045018802314650
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL mkl_umath-0.6.0-0-cp314-cp314-manylinux_2_28_x86_64.whl
Size 140.3 kB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
fdb38dfa0f8c094a09290bb01138f4963c558d0cb63fad4d96d29768242be2b0
BLAKE2b-256 checksum
How to use checksums
3837c7b0e096508f97228cde145c9ab9788870729a1e82c53de2b34e0a39f954
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp313-cp313-win_amd64.whl

Download URL mkl_umath-0.6.0-0-cp313-cp313-win_amd64.whl
Size 195.8 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
64b8f4835da8b73cf3b5c870e2d4de026232d61e4e019333dcb57f59f2f226d1
BLAKE2b-256 checksum
How to use checksums
13214261e580b3a2e6584a08325354bb09141c0ddb398312c6f5c87a2f6db851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL mkl_umath-0.6.0-0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 140.0 kB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e443dd91e5267390b77a833ab0d736125b5664d2ed732cca305bd630b0165189
BLAKE2b-256 checksum
How to use checksums
4231102a8f15a7e2fbabad5d58aefe76bf9073bafcc3f0e0ee41ee2e614bb543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp312-cp312-win_amd64.whl

Download URL mkl_umath-0.6.0-0-cp312-cp312-win_amd64.whl
Size 196.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
38e4e45743b3a62fcc8d87c74d99077582da76b5fc0cd614bd97bff8c1ae212b
BLAKE2b-256 checksum
How to use checksums
8854d5824a8a4a0296ff1661e3fc02fbec058bc4412bacddccc7b699c2f756a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL mkl_umath-0.6.0-0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 141.0 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c3a89ae82d9f9deac60d0f988a3804c80bb69337e7acd10bb1058a83ffa5de87
BLAKE2b-256 checksum
How to use checksums
7896248f5d95dd42792926c5c7d34f8c7f89d639b0c5e461be21c9ac46e86535
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp311-cp311-win_amd64.whl

Download URL mkl_umath-0.6.0-0-cp311-cp311-win_amd64.whl
Size 196.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
cc293ef35d468fffd3728c5df30a23a8c80d74c4c5951fd9b1b26828d95ac9c5
BLAKE2b-256 checksum
How to use checksums
5e9f224b7b2eabd1bfb7a665a25c78f74f3a3581ea2ee653a899ce6f14044eea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL mkl_umath-0.6.0-0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 140.5 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9d49336b84887f784a69e480c74b2fe48f353f357ef58066214209b15f66673c
BLAKE2b-256 checksum
How to use checksums
3cc0401ae325ae2e408b47953cad9576c09b67c1cc505dfede8a8f94d369baa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp310-cp310-win_amd64.whl

Download URL mkl_umath-0.6.0-0-cp310-cp310-win_amd64.whl
Size 197.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
d49df631e96ff1953d83a649210a5d83e13a012fe4dcf40bd3ac04b524b62059
BLAKE2b-256 checksum
How to use checksums
876528a7fa4310e670f424833baf53caa95481758780f166843f8570cb257218
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mkl_umath-0.6.0-0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL mkl_umath-0.6.0-0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 141.3 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8ad9f8478cdf7a69942d0c220618459130e9876c786f29b8524bcba187047c57
BLAKE2b-256 checksum
How to use checksums
e86ef0c3d4bbb728867d4a5e756b1414525aac20902144adc1c2f2f9754561eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for mkl-umath 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page