File tree Expand file tree Collapse file tree 6 files changed +33
-48
lines changed Expand file tree Collapse file tree 6 files changed +33
-48
lines changed Original file line number Diff line number Diff line change 7
7
pull_request : {}
8
8
9
9
jobs :
10
- test :
10
+ cargo- test :
11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
20
20
- uses : actions/checkout@v1
21
21
- uses : actions-rs/toolchain@v1
22
22
with :
23
- toolchain : " 1.56.0 "
23
+ toolchain : 1.61.0
24
24
profile : minimal
25
25
default : true
26
26
override : true
@@ -29,27 +29,18 @@ jobs:
29
29
with :
30
30
command : test
31
31
args : --manifest-path=intel-mkl-tool/Cargo.toml
32
- - name : cargo test with no-default-features
33
- uses : actions-rs/cargo@v1
34
- with :
35
- command : test
36
- args : >
37
- --manifest-path=intel-mkl-tool/Cargo.toml
38
- --no-default-features
39
32
40
- test_pkg_config :
33
+ seek :
41
34
runs-on : ubuntu-22.04
42
35
container :
43
36
image : ghcr.io/rust-math/rust-mkl:1.62.1-2020.1
44
37
steps :
45
38
- uses : actions/checkout@v1
46
- - uses : actions-rs/cargo@v1
47
- name : Seek /opt/intel
39
+ - name : Run seek example
40
+ uses : actions-rs/cargo@v1
48
41
with :
49
- command : test
42
+ command : run
50
43
args : >
51
44
--manifest-path=intel-mkl-tool/Cargo.toml
52
- pkg_config
53
- --
54
- --ignored
55
- --show-output
45
+ --release
46
+ --example seek
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version = "0.7.0+mkl2020.1"
4
4
authors = [
" Toshiki Teramura <[email protected] >" ]
5
5
edition = " 2018"
6
6
7
- rust-version = " 1.56 .0" # MSRV is introduced
7
+ rust-version = " 1.61 .0"
8
8
9
9
description = " Redistribution of Intel(R) MKL as a crate"
10
10
repository = " https://github.com/rust-math/intel-mkl-src"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version = "0.2.0+mkl2020.1"
4
4
authors = [
" Toshiki Teramura <[email protected] >" ]
5
5
edition = " 2018"
6
6
7
- rust-version = " 1.56 .0" # MSRV is introduced
7
+ rust-version = " 1.61 .0"
8
8
9
9
description = " FFI for Intel(R) MKL"
10
10
repository = " https://github.com/rust-math/intel-mkl-src"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name = "intel-mkl-tool"
3
3
version = " 0.4.0"
4
4
authors = [
" Toshiki Teramura <[email protected] >" ]
5
5
edition = " 2018"
6
- rust-version = " 1.56 .0" # MSRV is introduced
6
+ rust-version = " 1.61 .0"
7
7
8
8
description = " CLI utility for redistributiing Intel(R) MKL"
9
9
repository = " https://github.com/rust-math/intel-mkl-src"
Original file line number Diff line number Diff line change
1
+ use intel_mkl_tool:: * ;
2
+ use std:: process:: ExitCode ;
3
+
4
+ fn main ( ) -> ExitCode {
5
+ let mut num_not_found = 0 ;
6
+ for cfg in Config :: possibles ( ) {
7
+ let lib = Library :: new ( cfg) ;
8
+ print ! (
9
+ "{:>7} {:>5} {:>4}" ,
10
+ cfg. link. to_string( ) ,
11
+ cfg. index_size. to_string( ) ,
12
+ cfg. parallel. to_string( )
13
+ ) ;
14
+ if let Ok ( lib) = lib {
15
+ println ! ( " {}" , lib. library_dir. display( ) ) ;
16
+ } else {
17
+ num_not_found += 1 ;
18
+ println ! ( " Not found" ) ;
19
+ }
20
+ }
21
+ return ExitCode :: from ( num_not_found) ;
22
+ }
Original file line number Diff line number Diff line change @@ -282,31 +282,3 @@ impl Library {
282
282
Ok ( ( ) )
283
283
}
284
284
}
285
-
286
- #[ cfg( test) ]
287
- mod tests {
288
- use super :: * ;
289
-
290
- /// Seek /opt/intel in Linux system
291
- #[ ignore]
292
- #[ test]
293
- fn seek_opt_intel ( ) {
294
- for cfg in Config :: possibles ( ) {
295
- let lib = Library :: seek_directory ( cfg, "/opt/intel" ) . unwrap ( ) . unwrap ( ) ;
296
- dbg ! ( lib. version( ) . unwrap( ) ) ;
297
- }
298
- }
299
-
300
- #[ ignore]
301
- #[ test]
302
- fn pkg_config ( ) {
303
- for cfg in Config :: possibles ( ) {
304
- // pkg-config will not work for `mkl-*-*-iomp` cases
305
- if cfg. parallel == Threading :: OpenMP {
306
- continue ;
307
- }
308
- let lib = Library :: pkg_config ( cfg) . unwrap ( ) . unwrap ( ) ;
309
- dbg ! ( lib. version( ) . unwrap( ) ) ;
310
- }
311
- }
312
- }
You can’t perform that action at this time.
0 commit comments