From 2acf6561dc9e173870d4209ed40ebbdcf7e3888c Mon Sep 17 00:00:00 2001 From: Nathaniel Simard Date: Wed, 31 Jan 2024 14:47:02 -0500 Subject: [PATCH] Chore: put all dependencies versions in workspace (#1210) --- Cargo.toml | 18 +++++++++++++++++- burn-compute/Cargo.toml | 6 +++--- burn-dataset/Cargo.toml | 4 ++-- burn-ndarray/Cargo.toml | 8 +++----- burn-tch/Cargo.toml | 8 ++++---- burn-train/Cargo.toml | 6 +++--- burn-wgpu/Cargo.toml | 4 ++-- 7 files changed, 34 insertions(+), 20 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 46c97effe7..6478b9a7a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -90,6 +90,11 @@ wasm-bindgen = "0.2.88" wasm-bindgen-futures = "0.4.38" wasm-logger = "0.2.0" wasm-timer = "0.2.5" +md5 = "0.7.0" +serial_test = "3.0.0" +web-time = "1.0.0" +hound = "3.5.1" +image = "0.24.7" # Terminal UI ratatui = "0.25" @@ -97,8 +102,8 @@ crossterm = "0.27" # WGPU stuff futures-intrusive = "0.5" +text_placeholder = "0.5.0" pollster = "0.3" -text_placeholder = { version = "0.5.0", features = ["struct_context"] } wgpu = "0.19.0" bincode = { version = "2.0.0-rc.3", features = [ @@ -117,6 +122,9 @@ half = { version = "2.3.1", features = [ "serde", ], default-features = false } ndarray = { version = "0.15.6", default-features = false } +matrixmultiply = { version = "0.3.8", default-features = false } +openblas-src = "0.10.8" +blas-src = { version = "0.9.0", default-features = false } num-traits = { version = "0.2.17", default-features = false, features = [ "libm", ] } # libm is for no_std @@ -131,5 +139,13 @@ serde = { version = "1.0.192", default-features = false, features = [ serde_json = { version = "1.0.108", default-features = false } uuid = { version = "1.5.0", default-features = false } +libc = "0.2.150" +tch = "0.15.0" +nvml-wrapper = "0.9.0" +sysinfo = "0.29.10" +systemstat = "0.2.3" + + + [profile.dev] debug = 0 # Speed up compilation time and not necessary. diff --git a/burn-compute/Cargo.toml b/burn-compute/Cargo.toml index f1d0c72494..0826bd0a72 100644 --- a/burn-compute/Cargo.toml +++ b/burn-compute/Cargo.toml @@ -42,11 +42,11 @@ hashbrown = { workspace = true } dirs = { workspace = true , optional = true} serde = { workspace = true, optional = true} serde_json = { workspace = true, features=["std"], optional = true} -md5 = { version = "0.7.0", optional = true } +md5 = { workspace = true, optional = true } [target.'cfg(target_family = "wasm")'.dependencies] -web-time = { version = "1.0.0" } +web-time = { workspace = true } [dev-dependencies] -serial_test = "3.0.0" +serial_test = { workspace = true } rand = { workspace = true } diff --git a/burn-dataset/Cargo.toml b/burn-dataset/Cargo.toml index 3a8d3a7410..257b5af886 100644 --- a/burn-dataset/Cargo.toml +++ b/burn-dataset/Cargo.toml @@ -38,8 +38,8 @@ dirs = { workspace = true } fake = { workspace = true, optional = true } flate2 = { workspace = true, optional = true } gix-tempfile = { workspace = true, optional = true } -hound = { version = "3.5.1", optional = true } -image = { version = "0.24.7", features = ["png"], optional = true } +hound = { workspace = true, optional = true } +image = { workspace = true, features = ["png"], optional = true } indicatif = { workspace = true, optional = true } r2d2 = { workspace = true, optional = true } r2d2_sqlite = { workspace = true, optional = true } diff --git a/burn-ndarray/Cargo.toml b/burn-ndarray/Cargo.toml index 22bddaeb4b..7b7716ff9a 100644 --- a/burn-ndarray/Cargo.toml +++ b/burn-ndarray/Cargo.toml @@ -49,15 +49,13 @@ burn-tensor = { path = "../burn-tensor", version = "0.12.0", default-features = "export_tests", ] } -matrixmultiply = { version = "0.3.8", default-features = false } +matrixmultiply = { workspace = true, default-features = false } rayon = { workspace = true, optional = true } - -blas-src = { version = "0.9.0", default-features = false, optional = true } # no-std compatible - +blas-src = { workspace = true, default-features = false, optional = true } # no-std compatible derive-new = { workspace = true } libm = { workspace = true } ndarray = { workspace = true } num-traits = { workspace = true } -openblas-src = { version = "0.10.8", optional = true } +openblas-src = { workspace = true, optional = true } rand = { workspace = true } spin = { workspace = true } # using in place of use std::sync::Mutex; diff --git a/burn-tch/Cargo.toml b/burn-tch/Cargo.toml index 34ad753503..cf94d1605b 100644 --- a/burn-tch/Cargo.toml +++ b/burn-tch/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["nathanielsimard "] categories = ["science"] -description = "Tch backend for the Burn framework" +description = "LibTorch backend for the Burn framework using the tch bindings." edition.workspace = true keywords = ["deep-learning", "machine-learning", "data"] license.workspace = true @@ -18,9 +18,9 @@ doc = ["tch/doc-only"] burn-tensor = { path = "../burn-tensor", version = "0.12.0" } half = { workspace = true, features = ["std"] } -libc = "0.2.150" +libc = { workspace = true } rand = { workspace = true, features = ["std"] } -tch = { version = "0.15.0" , features = ["download-libtorch"] } +tch = { workspace = true, features = ["download-libtorch"] } [dev-dependencies] burn-autodiff = { path = "../burn-autodiff", version = "0.12.0", default-features = false, features = [ @@ -31,4 +31,4 @@ burn-tensor = { path = "../burn-tensor", version = "0.12.0", default-features = ] } [package.metadata.docs.rs] -features = [ "doc" ] \ No newline at end of file +features = [ "doc" ] diff --git a/burn-train/Cargo.toml b/burn-train/Cargo.toml index c10c46f1ed..64ad2521a0 100644 --- a/burn-train/Cargo.toml +++ b/burn-train/Cargo.toml @@ -24,9 +24,9 @@ tracing-appender = { workspace = true } tracing-core = { workspace = true } # Metrics -nvml-wrapper = { version = "0.9.0", optional = true } -sysinfo = { version = "0.29.10", optional = true } -systemstat = { version = "0.2.3", optional = true } +nvml-wrapper = { workspace = true, optional = true } +sysinfo = { workspace = true, optional = true } +systemstat = { workspace = true, optional = true } # Text UI ratatui = { workspace = true, optional = true, features = ["all-widgets"] } diff --git a/burn-wgpu/Cargo.toml b/burn-wgpu/Cargo.toml index 4cf0d3fe2d..6941531fd3 100644 --- a/burn-wgpu/Cargo.toml +++ b/burn-wgpu/Cargo.toml @@ -35,7 +35,7 @@ wgpu = { workspace = true, features = ["fragile-send-sync-non-atomic-wasm"] } # Template serde = { workspace = true } -text_placeholder = { version = "0.5.0", features = ["struct_context"] } +text_placeholder = { workspace = true, features = ["struct_context"] } hashbrown = { workspace = true } burn-compute = { path = "../burn-compute", version = "0.12.0", default-features = false, features = [ @@ -53,7 +53,7 @@ burn-tensor = { path = "../burn-tensor", version = "0.12.0", default-features = ] } burn-ndarray = { path = "../burn-ndarray", version = "0.12.0" } burn-fusion = { path = "../burn-fusion", version = "0.12.0" } -serial_test = "3.0.0" +serial_test = { workspace = true } [[bench]] name = "matmul"