#fft #blas-lapack #blas #lapack #vector-math

sys intel-mkl-src

Redistribution of Intel(R) MKL as a crate

19 releases

0.8.1 Sep 13, 2022
0.8.0-rc.1 Aug 25, 2022
0.7.0+mkl2020.1 Jul 29, 2022
0.6.0+mkl2020.1 Jun 23, 2020
0.2.5 Sep 14, 2017

#66 in Math

Download history 1487/week @ 2023-12-18 783/week @ 2023-12-25 943/week @ 2024-01-01 1373/week @ 2024-01-08 1930/week @ 2024-01-15 1555/week @ 2024-01-22 1595/week @ 2024-01-29 1725/week @ 2024-02-05 2513/week @ 2024-02-12 1930/week @ 2024-02-19 2643/week @ 2024-02-26 2764/week @ 2024-03-04 2049/week @ 2024-03-11 2626/week @ 2024-03-18 2712/week @ 2024-03-25 3534/week @ 2024-04-01

11,244 downloads per month
Used in 86 crates (34 directly)

Custom license

15KB
100 lines

intel-mkl-src

crate crate.io docs.rs master description
intel-mkl-src crate docs.rs crate Source crate for Intel-MKL
intel-mkl-sys Crate docs.rs Crate FFI for Intel-MKL vector math, and statistical functions
intel-mkl-tool Crate docs.rs Crate Seek Intel-MKL libraries from filesystem

Usage

intel-mkl-src crate is a *-src crate. This links MKL libraries to executable build by cargo, but does not provide Rust bindings. Please use blas-sys, lapack-sys, or fftw-sys to use BLAS, LAPACK, FFTW interface of MKL, e.g.

[dependencies]
fftw-sys = { version = "0.4", features = ["intel-mkl"] }

Binding to MKL specific features are provided by intel-mkl-sys crate. This contains

How to find system MKL libraries

intel-mkl-tool crate seeks system MKL library installed by various installer as following manner:

  • Seek using pkg-config command
  • Seek ${MKLROOT} directory
  • Seek default installation path
    • /opt/intel/mkl for Linux
    • C:/Program Files (x86)/IntelSWTools/ and C:/Program Files (x86)/Intel/oneAPI for Windows

If intel-mkl-tool does not find MKL library, intel-mkl-src try to download MKL binaries from GitHub Container Registry (ghcr.io).

Supported features

There are 8 (=2x2x2) mkl-*-*-* features to specify how to link MKL libraries. If any feature is set, default to mkl-static-ilp64-iomp.

dynamic means MKL is linked dynamically, i.e. the executable does not contains MKL libraries and will seek them from filesystem while execution. This is better choice when the MKL libraries are managed by the system package manager e.g. apt.

static means MKL is linked statically, i.e. the MKL binaries are embedded in the executable file. This is better choice when creating portable executable.

Data model (lp64 or ilp64)

This specify the data model:

  • ilp64 means int (i), long (l), and pointers (p) are 64-bit.
  • lp64 means long (l) and pointers (p) are 64-bit, int is 32-bit.

Thread management (iomp or seq)

  • iomp means MKL uses Intel OpenMP runtime
  • seq means sequential (single thread) execution

Using GNU OpenMP runtime (libgomp) is not supported yet. Please see https://github.com/rust-math/intel-mkl-src/issues/97

License

MKL is distributed under the Intel Simplified Software License for Intel(R) Math Kernel Library, See License.txt. Some wrapper codes are licensed by MIT License (see the header of each file).

Dependencies

~0–2.3MB
~34K SLoC