File tree 8 files changed +281
-395
lines changed
8 files changed +281
-395
lines changed Original file line number Diff line number Diff line change 22
22
- mkl-dynamic-ilp64-seq
23
23
runs-on : ubuntu-22.04
24
24
container :
25
- image : ghcr.io/rust-math/intel-mkl-src/mkl-rust:1.56.0
25
+ image : ghcr.io/rust-math/intel-mkl-src/mkl-rust:1.56.0-1
26
26
steps :
27
27
- uses : actions/checkout@v1
28
28
- uses : actions-rs/cargo@v1
Original file line number Diff line number Diff line change 12
12
fail-fast : false
13
13
matrix :
14
14
os :
15
- - windows-2019
16
- - macos-10.15
15
+ - windows-2022
16
+ - macos-11
17
17
- ubuntu-22.04
18
18
runs-on : ${{ matrix.os }}
19
19
steps :
@@ -37,23 +37,25 @@ jobs:
37
37
--manifest-path=intel-mkl-tool/Cargo.toml
38
38
--no-default-features
39
39
40
- seek :
40
+ test_pkg_config :
41
41
strategy :
42
42
fail-fast : false
43
43
matrix :
44
44
image :
45
45
- mkl-rust
46
46
- mkl-ubuntu
47
- - mkl-centos
48
47
runs-on : ubuntu-22.04
49
48
container :
50
- image : ghcr.io/rust-math/intel-mkl-src/${{ matrix.image }}:1.56.0
49
+ image : ghcr.io/rust-math/intel-mkl-src/${{ matrix.image }}:1.56.0-1
51
50
steps :
52
51
- uses : actions/checkout@v1
53
- - name : cargo run -- seek
54
- uses : actions-rs/cargo@v1
52
+ - uses : actions-rs/cargo@v1
53
+ name : Seek /opt/intel
55
54
with :
56
- command : run
55
+ command : test
57
56
args : >
58
57
--manifest-path=intel-mkl-tool/Cargo.toml
59
- -- seek
58
+ pkg_config
59
+ --
60
+ --ignored
61
+ --show-output
Original file line number Diff line number Diff line change 10
10
check-format :
11
11
runs-on : ubuntu-22.04
12
12
container :
13
- image : ghcr.io/rust-math/intel-mkl-src/mkl-rust:1.56.0
13
+ image : ghcr.io/rust-math/intel-mkl-src/mkl-rust:1.56.0-1
14
14
steps :
15
15
- uses : actions/checkout@v1
16
16
- uses : actions-rs/cargo@v1
21
21
clippy :
22
22
runs-on : ubuntu-22.04
23
23
container :
24
- image : ghcr.io/rust-math/intel-mkl-src/mkl-rust:1.56.0
24
+ image : ghcr.io/rust-math/intel-mkl-src/mkl-rust:1.56.0-1
25
25
steps :
26
26
- uses : actions/checkout@v1
27
27
- uses : actions-rs/cargo@v1
Original file line number Diff line number Diff line change 24
24
25
25
use anyhow:: { bail, Result } ;
26
26
use intel_mkl_tool:: * ;
27
- use std:: { env , path :: PathBuf , str:: FromStr } ;
27
+ use std:: str:: FromStr ;
28
28
29
29
#[ cfg( feature = "mkl-static-lp64-iomp" ) ]
30
30
const MKL_CONFIG : & str = "mkl-static-lp64-iomp" ;
@@ -45,26 +45,9 @@ const MKL_CONFIG: &str = "mkl-dynamic-ilp64-seq";
45
45
46
46
fn main ( ) -> Result < ( ) > {
47
47
let cfg = Config :: from_str ( MKL_CONFIG ) . unwrap ( ) ;
48
-
49
- // already exists on system
50
- if let Ok ( entry) = Entry :: from_config ( cfg) {
51
- entry. print_cargo_metadata ( ) ;
48
+ if let Ok ( lib) = Library :: new ( cfg) {
49
+ lib. print_cargo_metadata ( ) ?;
52
50
return Ok ( ( ) ) ;
53
51
}
54
-
55
- // download if not found
56
- #[ cfg( feature = "download" ) ]
57
- {
58
- let path = PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) ) ;
59
- println ! (
60
- r#"cargo:warning="Download Intel MKL archive into {}""# ,
61
- path. display( )
62
- ) ;
63
- cfg. download ( path) ?;
64
- let entry = Entry :: from_config ( cfg) . unwrap ( ) ; // must found
65
- entry. print_cargo_metadata ( ) ;
66
- return Ok ( ( ) ) ;
67
- }
68
-
69
- bail ! ( "No MKL found, and download flag is off." ) ;
52
+ bail ! ( "No MKL found" ) ;
70
53
}
Original file line number Diff line number Diff line change @@ -7,27 +7,12 @@ rust-version = "1.56.0" # MSRV is introduced
7
7
8
8
description = " CLI utility for redistributiing Intel(R) MKL"
9
9
repository = " https://github.com/rust-math/intel-mkl-src"
10
- keywords = [" cli " ]
10
+ keywords = []
11
11
license = " MIT"
12
12
13
- [features ]
14
- default = [" cli" ]
15
- cli = [" structopt" ]
16
-
17
13
[dependencies ]
18
14
anyhow = " 1.0.58"
19
- derive_more = " 0.99.17"
20
- dirs = " 4.0.0"
21
- glob = " 0.3.0"
22
- pkg-config = " 0.3.25"
23
-
24
- # CLI
25
- structopt = { version = " 0.3.26" , optional = true }
15
+ walkdir = " 2.3.2"
26
16
27
17
[dev-dependencies ]
28
18
paste = " 1.0.7"
29
-
30
- [[bin ]]
31
- name = " intel-mkl-tool"
32
- path = " src/cli.rs"
33
- required-features = [" cli" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments