1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use env;
// use std::fs;
// use std::path::Path;
// Moved to volta. Perhaps just link to ippi here.
/*fn try_link_mkl() {
if let Ok(_) = env::var("CARGO_FEATURE_MKL") {
println!("cargo:rustc-link-lib=mkl_intel_lp64");
println!("cargo:rustc-link-lib=mkl_intel_thread");
println!("cargo:rustc-link-lib=mkl_core");
println!("cargo:rustc-link-lib=pthread");
println!("cargo:rustc-link-lib=dl");
println!("cargo:rustc-link-lib=iomp5");
}
}
fn try_link_ipp() {
// NOTE: /opt/intel/oneapi/ipp/latest/lib/intel64 should be in LD_LIBRARY_PATH, because the DLLs
// will search be searched for the linked code as well (not only by cargo).
println!("cargo:rustc-link-search=/opt/intel/oneapi/ipp/latest/lib/intel64");
println!("cargo:rustc-link-lib=ippcore");
println!("cargo:rustc-link-lib=ippvm");
println!("cargo:rustc-link-lib=ipps");
println!("cargo:rustc-link-lib=ippi");
}
fn try_link_gsl() {
if let Ok(_) = env::var("CARGO_FEATURE_GSL") {
println!("cargo:rustc-link-lib=gsl");
println!("cargo:rustc-link-lib=gslcblas");
println!("cargo:rustc-link-lib=m");
}
}*/