Skip to content

Commit

Permalink
chore: remove blas dependency (#1973)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyxu authored Feb 18, 2024
1 parent 0512bba commit 6ea7095
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 507 deletions.
17 changes: 0 additions & 17 deletions rust/lance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ num_cpus.workspace = true
datafusion.workspace = true
datafusion-physical-expr.workspace = true
lapack = { version = "0.19.0", optional = true }
cblas = { version = "0.4.0", optional = true }
lru_time_cache = "0.11"
ordered-float = "3.6.0"
snafu = { workspace = true }
Expand All @@ -74,24 +73,9 @@ tracing.workspace = true
lazy_static = { workspace = true }
async_cell = "0.2.2"

[target.'cfg(target_os = "macos")'.dependencies]
accelerate-src = { version = "0.3.2", optional = true }

# docs.rs won't build with openblas-src, because it downloads file from internet.
[target.'cfg(target_os = "linux")'.dependencies]
openblas-src = { version = "0.10.8", default-features = false, features = [
"static",
"cblas",
], optional = true }

[target.'cfg(target_os = "linux")'.dev-dependencies]
pprof.workspace = true

[target.'cfg(target_os = "windows")'.dependencies]
openblas-src = { version = "0.10.8", default-features = false, features = [
"system",
], optional = true }

# Need this so we can prevent dynamic linking in binaries (see cli feature)
lzma-sys = { version = "0.1" }

Expand All @@ -116,7 +100,6 @@ tracing-chrome = "0.7.1"
avx512fp16 = ["lance-linalg/avx512fp16"]
# Prevent dynamic linking of lzma, which comes from datafusion
cli = ["clap", "lzma-sys/static"]
# opq = ["cblas", "lapack", "openblas-src", "accelerate-src"]
tensorflow = ["tfrecord"]
dynamodb = ["lance-table/dynamodb", "aws-sdk-dynamodb"]
dynamodb_tests = ["dynamodb"]
Expand Down
4 changes: 0 additions & 4 deletions rust/lance/src/index/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ pub mod diskann;
#[allow(dead_code)]
mod graph;
pub mod ivf;
#[cfg(feature = "opq")]
pub mod opq;
pub mod pq;
mod traits;
mod utils;
Expand All @@ -43,8 +41,6 @@ use self::{
};

use super::{pb, DatasetIndexInternalExt, IndexParams};
#[cfg(feature = "opq")]
use crate::index::vector::opq::{OPQIndex, OptimizedProductQuantizer};
use crate::{
dataset::Dataset,
index::{
Expand Down
Loading

0 comments on commit 6ea7095

Please sign in to comment.