mkl-service - Python package for run-time control of Intel® oneAPI Math Kernel Library (oneMKL).
To install conda package, use conda install -c https://software.repos.intel.com/python/conda/ mkl-service, or conda install -c conda-forge mkl-service.
To install PyPI package, use python -m pip install mkl-service.
Intel® oneAPI Math Kernel Library (oneMKL) supports functions are subdivided into the following groups according to their purpose:
- Version Information
- Threading Control
- Timing
- Memory Management
- Conditional Numerical Reproducibility Control
- Miscellaneous
A short example, illustrating its use:
>>> import mkl
>>> mkl.domain_set_num_threads(1, domain="fft") # oneMKL FFT functions to run sequentially
# 'success'
For more information about the usage of support functions see Developer Reference for Intel® oneAPI Math Kernel Library for C.
Building
A C compiler and Intel(R) oneAPI Math Kernel Library (oneMKL) are required to build mkl-service from source. The compiler must support C11 atomics (i.e., for Windows, Visual Studio 2022 17.5 or newer).
Executing
python -m pip install .
will pull in the required build dependencies, including mkl, and build mkl-service.
If you already have mkl installed (from your system or a Conda environment) and
want to reuse it instead of pulling a fresh copy into an isolated build, first
install the build dependencies:
python -m pip install mkl-devel meson-python cmake ninja "cython>=3.1.0"
then build against the existing installation with:
python -m pip install --no-build-isolation --no-deps .
Build options
| Option | Type | Default | Description |
|---|---|---|---|
ilp64 |
boolean | false |
Build with the oneMKL ILP64 interface |
Options are passed using -Csetup-args:
python -m pip install . -Csetup-args=-Dilp64=true
By default mkl-service is built against the LP64 interface, in which oneMKL's
integer type MKL_INT is 32-bit. Enabling ilp64 makes MKL_INT 64-bit
and requests the ILP64 interface layer from libmkl_rt on import.
Use it when the oneMKL libraries you link against provide the ILP64 interface.
The Python API is identical in both configurations — no function signature or return value changes.
Warning: the oneMKL interface layer is process-global and can only be selected before the first oneMKL call.
mkl-servicerequests it on import, so an ILP64 build is order-dependent and unsafe to mix with LP64 consumers:
- If imported before another oneMKL consumer initializes oneMKL, that consumer's LP64 calls get reinterpreted as ILP64. LAPACK routines in particular may crash.
- If the other consumer initializes oneMKL first, the ILP64 request is ignored and the process stays LP64.
Only enable
ilp64when every consumer uses the ILP64 interface ormkl-serviceis the sole oneMKL consumer in the process.
Metadata
Release files for mkl-service 2.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 1.6 MB
Release files / mkl_service-2.9.0-0-cp314-cp314t-win_amd64.whl
| Download URL | mkl_service-2.9.0-0-cp314-cp314t-win_amd64.whl |
|---|---|
| Size | 142.4 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b61cb1e2cb360a029e88bee6dec59b0d0ca350bb84bfb46e810667124bffe347
|
|
BLAKE2b-256 checksum How to use checksums |
fd4d47e5e381ee339179f62f5ffafdc8210d2dba845cd43ad66676b2a181368f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp314-cp314t-manylinux_2_28_x86_64.whl
| Download URL | mkl_service-2.9.0-0-cp314-cp314t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 137.7 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
30477886fe9309f6ba0637eea3e637036475844333f6ebaba191ab9144dbb957
|
|
BLAKE2b-256 checksum How to use checksums |
932d67c0992ea3b93aa19b38336b3c4c86ae2f20a381b5c8974e13d5d9c47b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp314-cp314-win_amd64.whl
| Download URL | mkl_service-2.9.0-0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 130.0 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
522e4f2a7b4c7f0e71be22da4483ff4cefd545414bdd02dd6b1a1d8e0436e096
|
|
BLAKE2b-256 checksum How to use checksums |
e33c85c8acdd1e42ad8d2ed1a88614d0ff220481ef95d8069bf316aaec322911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | mkl_service-2.9.0-0-cp314-cp314-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 127.4 kB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e4c6787d0eb4ebdd60724c8bed4f28cc8555c9cbd66f801f7e7e72e876c9e987
|
|
BLAKE2b-256 checksum How to use checksums |
e5f6654e7d7ae52b9e69a750a11f6abb7a7d2c9c484518c64e91782be3c0da42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp313-cp313-win_amd64.whl
| Download URL | mkl_service-2.9.0-0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 129.8 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
af357eeb6829e4ed34bd7a0e010d1aac1a0c019ccd36d2dbb4538e599360f55a
|
|
BLAKE2b-256 checksum How to use checksums |
9513bddaab54e14e4278bc9cbce753ae477cd4e8786666afa3fe1101c184a612
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | mkl_service-2.9.0-0-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 126.6 kB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
be8c1e18e3868f000cae28451ac61901482dd83b4333622e04568fa20cfe187b
|
|
BLAKE2b-256 checksum How to use checksums |
331e06e8cc44e41c1fc282131095acdcca401c8922ce3ede9517f08c229a26a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp312-cp312-win_amd64.whl
| Download URL | mkl_service-2.9.0-0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 130.9 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a919c31f558d6af59e03cd1f7785dfee38207a3a72cd8079599dc9348d19c5cf
|
|
BLAKE2b-256 checksum How to use checksums |
03286a5c70b757ac936001e56c18b2e3ae6466323d7d330bc1cfbbfa94aebf17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | mkl_service-2.9.0-0-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 128.8 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
eb0bd442d9ee9dfee9d5f87a555e91e3debeeb1dfd9d28d0fb3f5e6f09753547
|
|
BLAKE2b-256 checksum How to use checksums |
9324aa8ea323ab2a838629c3775bb623d74e8e32cf50c588d704aac5771b8f6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp311-cp311-win_amd64.whl
| Download URL | mkl_service-2.9.0-0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 130.7 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6781fbdd1b5dc5824a762e1843d2f583335e3a21abd12f605bc666a0bea177ef
|
|
BLAKE2b-256 checksum How to use checksums |
7b34cf0c4eae1cfc446e7321455850925aa8f4d0a5a5145bfed92435c2114a4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | mkl_service-2.9.0-0-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 125.2 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
171b9d3d3b889e4cbb0dec67207b42aa458daa7e35795e1d1af9b2382f38b2f0
|
|
BLAKE2b-256 checksum How to use checksums |
cc983caf27cbfb12b28a00fcc9fbf0d1b5caf53f20c07f8e99d2e53377e1eb5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp310-cp310-win_amd64.whl
| Download URL | mkl_service-2.9.0-0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 131.3 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c7d1d7da608feabe9837b817141cb00244e151f2dedd6be404405bfce73ba4bd
|
|
BLAKE2b-256 checksum How to use checksums |
6e6b25ab4cba151439bf2362a2ea630c3491542ce7a85635c795885b8a91c57d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / mkl_service-2.9.0-0-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | mkl_service-2.9.0-0-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 125.6 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a0e40e37af3c2a896e6e0ca7905ae03c38f561250ce766db69384e631535aaf6
|
|
BLAKE2b-256 checksum How to use checksums |
c45e37269197b19b3f8087d5251823799153af963fa2fb1b96ccdc010a3e5274
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for mkl-service 2.9.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.