Files
zeekayandHanzo Dev 65d9a1656c feat(metal): gate cuda-only code, add metal device path
- Cargo.toml: add metal feature (hanzo-ml/nn/quant metal) + accelerate
- customconv.rs: gate entire cudarc/CudaStorage impl under cfg(cuda);
  non-cuda stub covers()->false, forward()->bail so taesd.rs builds on metal
- main.rs: add pick_device() (cuda|metal via cfg-gated Device::new_*, else CPU);
  replace all hardcoded new_cuda(0) + MUSETALK_DEV matches; gate run_convbench cuda-only
- core dub (TAESD enc/dec + UNet + VAE) + verify/realverify/bench compile with --features metal

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-15 19:58:00 -07:00

25 lines
638 B
TOML

[package]
name = "musetalk-bench"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "musetalk-bench"
path = "src/main.rs"
[dependencies]
hanzo-ml = { path = "../ml/hanzo-ml" }
hanzo-nn = { path = "../ml/hanzo-nn" }
hanzo-quant = { path = "../engine/hanzo-quant" }
half = "2"
serde = { version = "1", features = ["derive"] }
[features]
cuda = ["hanzo-ml/cuda", "hanzo-nn/cuda", "hanzo-quant/cuda"]
cudnn = ["cuda", "hanzo-ml/cudnn", "hanzo-nn/cudnn"]
metal = ["hanzo-ml/metal", "hanzo-nn/metal", "hanzo-quant/metal"]
accelerate = ["hanzo-ml/accelerate", "hanzo-nn/accelerate", "hanzo-quant/accelerate"]
[profile.release]
opt-level = 3