Skip to content

Commit a58d311

Browse files
committed
expose granular mkl features, change which mkl is linked by default
1 parent d6a2ade commit a58d311

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

Cargo.toml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lapack-src"
3-
version = "0.11.0"
3+
version = "0.12.0"
44
edition = "2021"
55
license = "Apache-2.0 OR MIT"
66
authors = [
@@ -23,10 +23,23 @@ keywords = ["linear-algebra"]
2323
changelog = "CHANGELOG.md"
2424

2525
[features]
26+
# apple accelerate
2627
accelerate = ["accelerate-src"]
27-
intel-mkl = ["intel-mkl-src"]
28+
# intel mkl with different configurations
29+
intel-mkl = ["intel-mkl-static-lp64-seq"]
30+
intel-mkl-static-lp64-iomp = ["intel-mkl-src/mkl-static-lp64-iomp"]
31+
intel-mkl-static-lp64-seq = ["intel-mkl-src/mkl-static-lp64-seq"]
32+
intel-mkl-static-ilp64-iomp = ["intel-mkl-src/mkl-static-ilp64-iomp"]
33+
intel-mkl-static-ilp64-seq = ["intel-mkl-src/mkl-static-ilp64-seq"]
34+
intel-mkl-dynamic-lp64-iomp = ["intel-mkl-src/mkl-dynamic-lp64-iomp"]
35+
intel-mkl-dynamic-lp64-seq = ["intel-mkl-src/mkl-dynamic-lp64-seq"]
36+
intel-mkl-dynamic-ilp64-iomp = ["intel-mkl-src/mkl-dynamic-ilp64-iomp"]
37+
intel-mkl-dynamic-ilp64-seq = ["intel-mkl-src/mkl-dynamic-ilp64-seq"]
38+
# netlib
2839
netlib = ["netlib-src"]
40+
# openblas
2941
openblas = ["openblas-src"]
42+
# R
3043
r = ["r-src"]
3144

3245
[dependencies.accelerate-src]
@@ -36,6 +49,8 @@ optional = true
3649
[dependencies.intel-mkl-src]
3750
version = "0.8"
3851
optional = true
52+
default-features = false
53+
3954

4055
[dependencies.netlib-src]
4156
version = "0.8"
@@ -47,4 +62,4 @@ optional = true
4762

4863
[dependencies.r-src]
4964
version = "0.2.1"
50-
optional = true
65+
optional = true

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ lapack-src = { version = "0.11", features = ["openblas"] }
2626
lapack-src = { version = "0.11", features = ["r"] }
2727
```
2828

29+
### Intel MKL Configuration
30+
31+
The `intel-mkl` feature will *statically* link the *sequential LP64* version of
32+
the MKL library. To link other versions of the library, check the `intel-mkl-*-*-*`
33+
features inside this crate, which are analogous to the feature flags of
34+
the [`intel-mkl-src` crate] (https://crates.io/crates/intel-mkl-src).
35+
2936
## Contribution
3037

3138
Your contribution is highly appreciated. Do not hesitate to open an issue or a

0 commit comments

Comments
 (0)