From a2d5d6a51837cae3b7eaefafa8384e1212d809ff Mon Sep 17 00:00:00 2001 From: Andrey Tkachenko Date: Fri, 28 Aug 2020 16:36:21 +0400 Subject: [PATCH] use system lapack and openblas --- Cargo.toml | 4 ++-- build.rs | 3 +-- src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2a0a84c..6fab29d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,10 +8,10 @@ build = "build.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -cblas = "0.2.0" -openblas-src = { version = "0.9.0", features = ["cache", "static"] } +openblas-src = { version = "0.9.0", features = ["system"] } serde = {version = "1.0", features = ["derive"]} serde_json = "1.0" +cblas-src = "0.1" [build-dependencies] bindgen = "0.54" diff --git a/build.rs b/build.rs index 196c825..c042f84 100644 --- a/build.rs +++ b/build.rs @@ -40,8 +40,7 @@ fn extract, P2: AsRef>(filename: P1, outpath: P2) -> anyho } fn main() { - // println!("cargo:rustc-link-lib=dylib=lapacke"); - // println!("cargo:rustc-link-lib=dylib=cblas"); + println!("cargo:rustc-link-lib=dylib=lapack"); let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()); diff --git a/src/lib.rs b/src/lib.rs index 9086cba..6163db0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -extern crate cblas; +extern crate cblas_src; extern crate openblas_src; #[used]