Skip to content

Commit

Permalink
Remove feature flags for openblas backend
Browse files Browse the repository at this point in the history
 * remove features tests-openblas-*
 * use system openblas installation per default
  • Loading branch information
bytesnake committed Nov 27, 2020
1 parent 0244747 commit b7387ea
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 34 deletions.
7 changes: 1 addition & 6 deletions linfa-clustering/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ readme = "README.md"
keywords = ["clustering", "machine-learning", "linfa", "k-means", "unsupervised"]
categories = ["algorithms", "mathematics", "science"]

[features]
default = ["tests-openblas-system"]
tests-openblas-system = ["openblas-src/system"]
tests-openblas-build = ["openblas-src/cblas", "openblas-src/lapacke"]

[dependencies.serde_crate]
package = "serde"
optional = true
Expand All @@ -36,7 +31,7 @@ rand_isaac = "0.2.0"
linfa = { path = ".." }

[dev-dependencies]
openblas-src = { version = "0.9", default-features = false }
openblas-src = { version = "0.9", default-features = false, features = ["system"] }
ndarray-npy = { version = "0.5", default-features = false }
criterion = "0.3"
serde_json = "1"
Expand Down
7 changes: 1 addition & 6 deletions linfa-ica/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ readme = "README.md"
keywords = ["factorization", "machine-learning", "linfa", "unsupervised"]
categories = ["algorithms", "mathematics", "science"]

[features]
default = ["tests-openblas-system"]
tests-openblas-system = ["openblas-src/system"]
tests-openblas-build = ["openblas-src/cblas", "openblas-src/lapacke"]

[dependencies]
ndarray = { version = "0.13", default-features = false }
ndarray-rand = "0.11"
Expand All @@ -28,6 +23,6 @@ rand_isaac = "0.2.0"
linfa = { path = ".." }

[dev-dependencies]
openblas-src = { version = "0.9", default-features = false }
openblas-src = { version = "0.9", default-features = false, features = ["system"] }
ndarray-npy = { version = "0.5", default-features = false }
paste = "1.0"
7 changes: 1 addition & 6 deletions linfa-linear/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ authors = ["Paul Körbitz / Google <[email protected]>"]
edition = "2018"
workspace = ".."

[features]
default = ["tests-openblas-system"]
tests-openblas-system = ["openblas-src/system"]
tests-openblas-build = ["openblas-src/cblas", "openblas-src/lapacke"]

[dependencies]
ndarray = {version = "0.13", features = ["blas", "approx"]}
ndarray-linalg = "0.12"
Expand All @@ -19,7 +14,7 @@ argmin = {version="0.3.1", features=["ndarrayl"]}
serde = "1.0"

[dev-dependencies]
openblas-src = { version = "0.9", default-features = false }
openblas-src = { version = "0.9", default-features = false, features = ["system"] }
csv = "1.1"
ndarray-csv = "0.4"
approx = "0.3.2"
Expand Down
7 changes: 1 addition & 6 deletions linfa-logistic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ authors = ["Paul Körbitz / Google <[email protected]>"]
edition = "2018"
workspace = ".."

[features]
default = ["tests-openblas-system"]
tests-openblas-system = ["openblas-src/system"]
tests-openblas-build = ["openblas-src/cblas", "openblas-src/lapacke"]

[dependencies]
ndarray = {version = "0.13", features = ["blas", "approx"]}
ndarray-linalg = "0.12"
Expand All @@ -18,5 +13,5 @@ argmin = {version="0.3.1", features=["ndarrayl"]}
serde = "1.0"

[dev-dependencies]
openblas-src = { version = "0.9", default-features = false }
openblas-src = { version = "0.9", default-features = false, features = ["system"] }
approx = "0.3.2"
4 changes: 2 additions & 2 deletions linfa-reduction/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ keywords = ["dimensionality reduction", "machine-learning", "linfa", "spectral",
categories = ["algorithms", "mathematics", "science"]

[features]
default = ["tests-openblas-system"]
default = []
tests-openblas-system = ["openblas-src/system"]
tests-openblas-build = ["openblas-src/cblas", "openblas-src/lapacke"]

Expand All @@ -28,7 +28,7 @@ linfa = { path = ".." }
linfa-kernel = { path = "../linfa-kernel" }

[dev-dependencies]
openblas-src = { version = "0.9", default-features = false }
openblas-src = { version = "0.9", default-features=false }
rand_isaac = "0.2.0"
ndarray-npy = { version = "0.5", default-features = false }
criterion = "0.3"
Expand Down
8 changes: 1 addition & 7 deletions linfa-svm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ readme = "README.md"
keywords = ["svm", "support vector machine", "machine-learning", "linfa", "supervised"]
categories = ["algorithms", "mathematics", "science"]

[features]
default = ["tests-openblas-system"]

tests-openblas-system = ["openblas-src/system"]
tests-openblas-build = ["openblas-src/cblas", "openblas-src/lapacke"]

[dependencies]
ndarray = { version = "0.13", default-features=false, features=["blas"] }
ndarray-rand = "0.11"
Expand All @@ -27,7 +21,7 @@ linfa = { path = ".." }
linfa-kernel = { path = "../linfa-kernel" }

[dev-dependencies]
openblas-src = { version = "0.9", default-features = false }
openblas-src = { version = "0.9", default-features = false, features = ["system"] }
csv = "1.1"
ndarray-csv = "0.4"
flate2 = "1.0"
2 changes: 1 addition & 1 deletion linfa-svm/src/classification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ impl<'a, F: Float, T: Targets, D: Data<Elem = F>>

#[cfg(test)]
mod tests {
extern crate openblas_src; // or another backend of your choice
extern crate openblas_src;

use super::Svm;
use linfa::dataset::Dataset;
Expand Down

0 comments on commit b7387ea

Please sign in to comment.