File tree 8 files changed +149
-66
lines changed
8 files changed +149
-66
lines changed Original file line number Diff line number Diff line change
1
+ name : intel-mkl
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request : {}
8
+
9
+ jobs :
10
+ windows :
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ feature :
15
+ - intel-mkl-static
16
+ runs-on : windows-2019
17
+ steps :
18
+ - uses : actions/checkout@v1
19
+ - uses : actions-rs/cargo@v1
20
+ with :
21
+ command : test
22
+ args : >
23
+ --manifest-path=ndarray-linalg/Cargo.toml
24
+ --no-default-features
25
+ --features=${{ matrix.feature }}
26
+
27
+ linux :
28
+ strategy :
29
+ fail-fast : false
30
+ matrix :
31
+ feature :
32
+ - intel-mkl-static
33
+ runs-on : ubuntu-18.04
34
+ steps :
35
+ - uses : actions/checkout@v1
36
+ - uses : actions-rs/cargo@v1
37
+ name : cargo test
38
+ with :
39
+ command : test
40
+ args : >
41
+ --manifest-path=ndarray-linalg/Cargo.toml
42
+ --no-default-features
43
+ --features=${{ matrix.feature }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : netlib
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request : {}
8
+
9
+ jobs :
10
+ linux :
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ feature :
15
+ - static
16
+ runs-on : ubuntu-18.04
17
+ steps :
18
+ - uses : actions/checkout@v1
19
+ - name : apt install gfortran
20
+ run : |
21
+ sudo apt update
22
+ sudo apt install -y gfortran
23
+ - uses : actions-rs/cargo@v1
24
+ with :
25
+ command : test
26
+ args : >
27
+ --manifest-path=ndarray-linalg/Cargo.toml
28
+ --no-default-features
29
+ --features=netlib-${{ matrix.feature }}
Original file line number Diff line number Diff line change
1
+ name : openblas
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request : {}
8
+
9
+ jobs :
10
+ linux :
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ feature :
15
+ - system
16
+ - static
17
+ runs-on : ubuntu-18.04
18
+ steps :
19
+ - uses : actions/checkout@v1
20
+ - name : apt install gfortran
21
+ run : |
22
+ sudo apt update
23
+ sudo apt install -y gfortran
24
+ - name : apt install openblas
25
+ run : |
26
+ sudo apt update
27
+ sudo apt install -y libopenblas-dev
28
+ if : ${{ matrix.feature == 'system' }}
29
+ - uses : actions-rs/cargo@v1
30
+ with :
31
+ command : test
32
+ args : >
33
+ --manifest-path=ndarray-linalg/Cargo.toml
34
+ --no-default-features
35
+ --features=openblas-${{ matrix.feature }}
Original file line number Diff line number Diff line change 5
5
edition = " 2018"
6
6
7
7
[features ]
8
- default = []
9
- intel-mkl = [" lapack-src/intel-mkl" , " blas-src/intel-mkl" ]
10
- netlib = [" lapack-src/netlib" , " blas-src/netlib" ]
11
- openblas = [" lapack-src/openblas" , " blas-src/openblas" ]
8
+ default = []
9
+
10
+ netlib = [" netlib-static" ]
11
+ openblas = [" openblas-static" ]
12
+ intel-mkl = [" intel-mkl-static" ]
13
+
14
+ netlib-static = [" netlib-src/static" ]
15
+ netlib-system = [" netlib-src/system" ]
16
+
17
+ openblas-static = [" openblas-src/static" ]
18
+ openblas-system = [" openblas-src/system" ]
19
+
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" ]
12
22
13
23
[dependencies ]
14
24
thiserror = " 1.0"
15
25
cauchy = " 0.2.0"
16
26
num-traits = " 0.2"
17
27
lapack = " 0.16.0"
18
28
19
- [dependencies .blas -src ]
20
- version = " 0.6.1 "
29
+ [dependencies .intel-mkl -src ]
30
+ version = " 0.6.0 "
21
31
default-features = false
32
+ optional = true
22
33
23
- [dependencies .lapack-src ]
24
- version = " 0.6.0"
34
+ [dependencies .netlib-src ]
35
+ version = " 0.8.0"
36
+ optional = true
37
+ features = [" cblas" ]
25
38
default-features = false
26
39
27
40
[dependencies .openblas-src ]
28
41
version = " 0.9.0"
29
- default-features = false
30
- features = [" static" ]
31
42
optional = true
43
+ default-features = false
44
+ features = [" cblas" ]
Original file line number Diff line number Diff line change 59
59
//! [svddc]: svddck/trait.SVDDC_.html#tymethod.svddc
60
60
//! [least_squares]: least_squares/trait.LeastSquaresSvdDivideConquer_.html#tymethod.least_squares
61
61
62
- extern crate blas_src;
63
- extern crate lapack_src;
62
+ #[ cfg( any( feature = "intel-mkl-system" , feature = "intel-mkl-static" ) ) ]
63
+ extern crate intel_mkl_src as _src;
64
+
65
+ #[ cfg( any( feature = "openblas-system" , feature = "openblas-static" ) ) ]
66
+ extern crate openblas_src as _src;
67
+
68
+ #[ cfg( any( feature = "netlib-system" , feature = "netlib-static" ) ) ]
69
+ extern crate netlib_src as _src;
64
70
65
71
pub mod cholesky;
66
72
pub mod eig;
Original file line number Diff line number Diff line change @@ -14,9 +14,19 @@ categories = ["algorithms", "science"]
14
14
15
15
[features ]
16
16
default = []
17
- intel-mkl = [ " lax/intel-mkl " ]
17
+
18
18
netlib = [" lax/netlib" ]
19
19
openblas = [" lax/openblas" ]
20
+ intel-mkl = [" lax/intel-mkl" ]
21
+
22
+ netlib-static = [" lax/netlib-static" ]
23
+ netlib-system = [" lax/netlib-system" ]
24
+
25
+ openblas-static = [" lax/openblas-static" ]
26
+ openblas-system = [" lax/openblas-system" ]
27
+
28
+ intel-mkl-static = [" lax/intel-mkl-static" ]
29
+ intel-mkl-system = [" lax/intel-mkl-system" ]
20
30
21
31
[dependencies ]
22
32
cauchy = " 0.2.2"
Original file line number Diff line number Diff line change 47
47
48
48
#[ macro_use]
49
49
extern crate ndarray;
50
-
51
50
extern crate lax as lapack;
52
51
53
52
pub mod assert;
You can’t perform that action at this time.
0 commit comments