Skip to content

Commit f977c5c

Browse files
committed
intel-mkl-{static,system} features
1 parent 318b94d commit f977c5c

File tree

4 files changed

+11
-54
lines changed

4 files changed

+11
-54
lines changed

.github/workflows/intel-mkl.yml

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
feature:
15-
- mkl-static-lp64-seq
16-
- mkl-dynamic-lp64-seq
15+
- intel-mkl-static
1716
runs-on: windows-2019
1817
steps:
1918
- uses: actions/checkout@v1
@@ -25,54 +24,20 @@ jobs:
2524
--no-default-features
2625
--features=${{ matrix.feature }}
2726
28-
macos:
29-
strategy:
30-
fail-fast: false
31-
matrix:
32-
feature:
33-
- mkl-dynamic-lp64-iomp
34-
- mkl-dynamic-lp64-seq
35-
runs-on: macos-10.15
36-
steps:
37-
- uses: actions/checkout@v1
38-
- uses: actions-rs/cargo@v1
39-
name: cargo test --all-targets
40-
with:
41-
command: test
42-
args: >
43-
--manifest-path=ndarray-linalg/Cargo.toml
44-
--no-default-features
45-
--features=${{ matrix.feature }}
46-
--all-targets
47-
4827
linux:
4928
strategy:
5029
fail-fast: false
5130
matrix:
5231
feature:
53-
- mkl-static-lp64-iomp
54-
- mkl-static-lp64-seq
55-
- mkl-dynamic-lp64-iomp
56-
- mkl-dynamic-lp64-seq
32+
- intel-mkl-static
5733
runs-on: ubuntu-18.04
5834
steps:
5935
- uses: actions/checkout@v1
6036
- uses: actions-rs/cargo@v1
61-
name: cargo test --all-targets
62-
with:
63-
command: test
64-
args: >
65-
--manifest-path=ndarray-linalg/Cargo.toml
66-
--no-default-features
67-
--features=${{ matrix.feature }}
68-
--all-targets
69-
- uses: actions-rs/cargo@v1
70-
name: cargo test --doc
37+
name: cargo test
7138
with:
7239
command: test
7340
args: >
7441
--manifest-path=ndarray-linalg/Cargo.toml
7542
--no-default-features
7643
--features=${{ matrix.feature }}
77-
--doc
78-
if: ${{ startsWith(matrix.feature, 'mkl-static') }}

lax/Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@ default = []
99

1010
netlib = ["netlib-static"]
1111
openblas = ["openblas-static"]
12-
intel-mkl = ["mkl-static-lp64-seq"]
12+
intel-mkl = ["intel-mkl-static"]
1313

1414
netlib-static = ["netlib-src/static"]
1515
netlib-system = ["netlib-src/system"]
16+
1617
openblas-static = ["openblas-src/static"]
1718
openblas-system = ["openblas-src/system"]
1819

19-
mkl-static-lp64-iomp = ["intel-mkl-src/mkl-static-lp64-iomp"]
20-
mkl-static-lp64-seq = ["intel-mkl-src/mkl-static-lp64-seq"]
21-
mkl-dynamic-lp64-iomp = ["intel-mkl-src/mkl-dynamic-lp64-iomp"]
22-
mkl-dynamic-lp64-seq = ["intel-mkl-src/mkl-dynamic-lp64-seq"]
20+
intel-mkl-static = ["intel-mkl-src/mkl-static-lp64-seq", "intel-mkl-src/download"]
21+
intel-mkl-system = ["intel-mkl-src/mkl-dynamic-lp64-seq"]
2322

2423
[dependencies]
2524
thiserror = "1.0"
@@ -30,7 +29,6 @@ lapack = "0.16.0"
3029
[dependencies.intel-mkl-src]
3130
version = "0.6.0"
3231
default-features = false
33-
features = ["download"]
3432
optional = true
3533

3634
[dependencies.netlib-src]

lax/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,7 @@
5959
//! [svddc]: svddck/trait.SVDDC_.html#tymethod.svddc
6060
//! [least_squares]: least_squares/trait.LeastSquaresSvdDivideConquer_.html#tymethod.least_squares
6161
62-
#[cfg(any(
63-
feature = "mkl-static-lp64-iomp",
64-
feature = "mkl-static-lp64-seq",
65-
feature = "mkl-dynamic-lp64-iomp",
66-
feature = "mkl-dynamic-lp64-seq",
67-
))]
62+
#[cfg(any(feature = "intel-mkl-system", feature = "intel-mkl-static"))]
6863
extern crate intel_mkl_src as _src;
6964

7065
#[cfg(any(feature = "openblas-system", feature = "openblas-static"))]

ndarray-linalg/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ intel-mkl = ["lax/intel-mkl"]
2121

2222
netlib-static = ["lax/netlib-static"]
2323
netlib-system = ["lax/netlib-system"]
24+
2425
openblas-static = ["lax/openblas-static"]
2526
openblas-system = ["lax/openblas-system"]
2627

27-
mkl-static-lp64-iomp = ["lax/mkl-static-lp64-iomp"]
28-
mkl-static-lp64-seq = ["lax/mkl-static-lp64-seq"]
29-
mkl-dynamic-lp64-iomp = ["lax/mkl-dynamic-lp64-iomp"]
30-
mkl-dynamic-lp64-seq = ["lax/mkl-dynamic-lp64-seq"]
28+
intel-mkl-static = ["lax/intel-mkl-static"]
29+
intel-mkl-system = ["lax/intel-mkl-system"]
3130

3231
[dependencies]
3332
cauchy = "0.2.2"

0 commit comments

Comments
 (0)