Skip to content

Commit 5c3085b

Browse files
committed
How to find MKL
1 parent ad64159 commit 5c3085b

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,25 @@ Please use `blas-sys`, `lapack-sys`, or `fftw-sys` to use BLAS, LAPACK, FFTW int
3434
fftw-sys = { version = "0.4", features = ["intel-mkl"] }
3535
```
3636

37-
## pkg-config
38-
39-
This crate does not download archive if `pkg-config` finds MKL shared library installed by other way.
40-
Be sure to set `PKG_CONFIG_PATH` and `LD_LIBRARY_PATH` correctly.
41-
For debian and ubuntu users, [ci/Dockerfile](ci/Dockerfile) may be helpful.
42-
Windows is not supported yet.
37+
## Find system MKL libraries
38+
39+
This crate will download archive from AWS S3 `rust-intel-mkl` bucket if no MKL library installed by other way, e.g. [apt]/[yum].
40+
`intel-mkl-src` seeks MKL in following manner:
41+
42+
- Check `${OUT_DIR}` where previous build has downloaded
43+
- Seek using [pkg-config] crate
44+
- `${PKG_CONFIG_PATH}` has to be set correctly. It may not be set by default in usual install.
45+
- You can confirm it by checking the following command returns error.
46+
```
47+
pkg-config --libs mkl-dynamic-lp64-iomp
48+
```
49+
- (experimental) Seek `${XDG_DATA_HOME}/intel-mkl-tool`
50+
- Seek a directory set by `${MKLROOT}` environment variable
51+
- Seek `/opt/intel/mkl`
52+
53+
[apt]: https://software.intel.com/content/www/us/en/develop/articles/installing-intel-free-libs-and-python-apt-repo.html
54+
[yum]: https://software.intel.com/content/www/us/en/develop/articles/installing-intel-free-libs-and-python-yum-repo.html
55+
[pkg-config]: https://github.com/rust-lang/pkg-config-rs
4356
4457
## License
4558
MKL is distributed under the Intel Simplified Software License for Intel(R) Math Kernel Library, See [License.txt](License.txt).

0 commit comments

Comments
 (0)