use system lapack and openblas

This commit is contained in:
Andrey Tkachenko 2020-08-28 16:36:21 +04:00
parent 7f7815c24b
commit a2d5d6a518
3 changed files with 4 additions and 5 deletions

View File

@ -8,10 +8,10 @@ build = "build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
cblas = "0.2.0" openblas-src = { version = "0.9.0", features = ["system"] }
openblas-src = { version = "0.9.0", features = ["cache", "static"] }
serde = {version = "1.0", features = ["derive"]} serde = {version = "1.0", features = ["derive"]}
serde_json = "1.0" serde_json = "1.0"
cblas-src = "0.1"
[build-dependencies] [build-dependencies]
bindgen = "0.54" bindgen = "0.54"

View File

@ -40,8 +40,7 @@ fn extract<P1: AsRef<Path>, P2: AsRef<Path>>(filename: P1, outpath: P2) -> anyho
} }
fn main() { fn main() {
// println!("cargo:rustc-link-lib=dylib=lapacke"); println!("cargo:rustc-link-lib=dylib=lapack");
// println!("cargo:rustc-link-lib=dylib=cblas");
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());

View File

@ -1,4 +1,4 @@
extern crate cblas; extern crate cblas_src;
extern crate openblas_src; extern crate openblas_src;
#[used] #[used]