Crates.io | intel-mkl-src |
lib.rs | intel-mkl-src |
version | 0.8.1 |
source | src |
created_at | 2017-09-04 10:14:28.353394 |
updated_at | 2022-09-13 13:31:59.212346 |
description | Redistribution of Intel(R) MKL as a crate |
homepage | |
repository | https://github.com/rust-math/intel-mkl-src |
max_upload_size | |
id | 30477 |
size | 15,675 |
crate | crate.io | docs.rs | master | description |
---|---|---|---|---|
intel-mkl-src | Source crate for Intel-MKL | |||
intel-mkl-sys | FFI for Intel-MKL vector math, and statistical functions | |||
intel-mkl-tool | Seek Intel-MKL libraries from filesystem |
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
intel-mkl-tool
crate seeks system MKL library installed by various installer as following manner:
pkg-config
command${MKLROOT}
directory/opt/intel/mkl
for LinuxC:/Program Files (x86)/IntelSWTools/
and C:/Program Files (x86)/Intel/oneAPI
for WindowsIf intel-mkl-tool
does not find MKL library, intel-mkl-src
try to download MKL binaries from GitHub Container Registry (ghcr.io).
There are 8 (=2x2x2) mkl-*-*-*
features to specify how to link MKL libraries.
If any feature is set, default to mkl-static-ilp64-iomp
.
static
or dynamic
)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.
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.iomp
or seq
)iomp
means MKL uses Intel OpenMP runtimeseq
means sequential (single thread) executionUsing GNU OpenMP runtime (libgomp
) is not supported yet. Please see https://github.com/rust-math/intel-mkl-src/issues/97
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).