#hpc #ai #science

sys mkl-rs-sys

MKL bindings for Rust

3 unstable releases

0.3.1 Feb 22, 2024
0.3.0 Feb 22, 2024
0.1.0 Feb 21, 2024

#1352 in Math

35 downloads per month

Apache-2.0

8KB
99 lines

MKL-RS

Rust bindings for MKL.

Install MKL

Install MKL on your system from the site.

For example on Fedora, run:

sudo dnf install \
    intel-oneapi-mkl \
    intel-oneapi-mkl-devel \
    intel-oneapi-compiler-shared-runtime-2024.0 \
    intel-oneapi-openmp-common-2024.0 \
    intel-oneapi-openmp-2024.0 \
    libgomp \
    libgomp-devel \
    libomp

Ensure pkg-config can find your MKL isntallation. Installing on Debian-based or RHEL-based distributions will configure pkg-config correctly by default.

You can check that mkl can be found by running:

$ pkg-config --cflags mkl-static-ilp64-gomp
-DMKL_ILP64 -m64 -I/opt/intel/oneapi/mkl/2024.0/lib/pkgconfig/../../include

No runtime deps

~0–1.8MB
~36K SLoC