Skip to content

Commit

Permalink
mv ug to conditional target dep
Browse files Browse the repository at this point in the history
assuming every non-wasm32 user wants this
  • Loading branch information
DougAnderson444 committed Jan 31, 2025
1 parent 5646208 commit cf24b15
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions candle-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,26 @@ rand_distr = { workspace = true }
rayon = { workspace = true }
safetensors = { workspace = true }
thiserror = { workspace = true }
ug = { workspace = true, optional = true }
ug-cuda = { workspace = true, optional = true }
ug-metal = { workspace = true, optional = true }
yoke = { workspace = true }
zip = { workspace = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ug = { workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
clap = { workspace = true }
criterion = { workspace = true }


[features]
default = []
cuda = ["cudarc", "dep:candle-kernels", "dep:ug-cuda", "dep:ug"]
cuda = ["cudarc", "dep:candle-kernels", "dep:ug-cuda"]
cudnn = ["cuda", "cudarc/cudnn"]
mkl = ["dep:libc", "dep:intel-mkl-src"]
accelerate = ["dep:libc", "dep:accelerate-src"]
metal = ["dep:metal", "dep:candle-metal-kernels", "dep:ug-metal", "dep:ug"]
metal = ["dep:metal", "dep:candle-metal-kernels", "dep:ug-metal"]

[[bench]]
name = "bench_main"
Expand Down

0 comments on commit cf24b15

Please sign in to comment.