Registry / data / onemkl-sycl-blas

onemkl-sycl-blas

JSON →
library2026.0.0pypypiunverified

Intel oneAPI Math Kernel Library (oneMKL) BLAS routines for SYCL devices. Provides a SYCL implementation of BLAS operations using Intel oneMKL. Current version 2026.0.0; release follows Intel oneAPI release cadence (usually annual).

pip install onemkl-sycl-blas
INSTALL
IMPORT
SIG · ONEMKL-SYCL-BLAS
O
onemkl-sycl-blas
datapythonv2026.0.0
Install
22.7s avg
Import
Disk
17MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2026.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 22.7s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

blas
from onemkl_sycl_blas import blas
from onemkl._blas import blas

Basic GEMM operation using oneMKL SYCL BLAS. Note: matrices must be in column-major order.

import dpctl import numpy as np from onemkl._blas import blas, ColumnMajor # Create a SYCL queue (use default GPU) queue = dpctl.SyclQueue() # Prepare matrices (ColumnMajor order required!) m, n, k = 4, 4, 4 alpha = np.float64(1.0) beta = np.float64(0.0) A = np.random.rand(m, k).astype(np.float64) B = np.random.rand(k, n).astype(np.float64) C = np.zeros((m, n), dtype=np.float64) # Compute C = alpha * A * B + beta * C blas.gemm(queue, ColumnMajor, 'N', 'N', m, n, k, alpha, A, m, B, k, beta, C, m) print(C)
Debug
Known issues
breakingv2025.0.0 changed the internal module path from `onemkl_sycl_blas` to `onemkl._blas`. All imports using the old path will fail.
fix
Replace `import onemkl_sycl_blas` with `from onemkl._blas import blas`.
affects: >=2025.0.0
gotchaAll BLAS routines expect column-major layout (Fortran order). Passing row-major arrays will produce incorrect results without error.
fix
Ensure arrays are column-major (use `np.asfortranarray()`) or transpose correctly.
affects: all
gotchaThe library does not support all BLAS operations (e.g., SPMV, TRSV). Check documentation before assuming availability.
fix
Consult the Intel oneMKL documentation for supported routines.
affects: all
deprecatedv2024.x and earlier used `dpnp` arrays. `dpnp` is deprecated; use `numpy` arrays with `dpctl` queue instead.
fix
Migrate from `dpnp` to `numpy` + `dpctl`.
affects: <2025.0.0
Upgrade
Version history
2026.0.0latest on PyPI · released Apr 24, 2026
Audit
Dependencies
dpctlrequiredSYCL device management and queue creation
numpyrequiredArray inputs/outputs
Agent activity
2 hits · last 30 days
node
2
Resources
onemkl-sycl-blas — pip install onemkl-sycl-blas · libregistry