Skip to content

Commit 2bad93f

Browse files
committed
Fix burn-vision backend features
1 parent 97449bd commit 2bad93f

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/burn-vision/Cargo.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ tracing = [
3333
cubecl-backend = ["cubecl", "burn-cubecl"]
3434
fusion = ["burn-fusion", "burn-cuda/fusion", "burn-wgpu/fusion"]
3535

36+
# TODO: should remove backend crate deps and use re-exported types from burn-core
3637
cuda = ["cubecl-backend", "burn-core/cuda", "burn-cuda"]
37-
# rocm = ["cubecl-backend", "burn-core/rocm", "burn-rocm"]
38+
rocm = ["cubecl-backend", "burn-core/rocm", "burn-rocm"]
3839
wgpu = ["cubecl-backend", "burn-core/wgpu", "burn-wgpu"]
39-
# vulkan = ["wgpu", "burn-core/vulkan", "burn-wgpu/vulkan"]
40-
# webgpu = ["wgpu", "burn-core/webgpu", "burn-wgpu/webgpu"]
41-
# metal = ["wgpu", "burn-core/metal", "burn-wgpu/metal"]
42-
# cpu = ["cubecl-backend", "burn-core/cpu", "burn-cpu"]
40+
vulkan = ["wgpu", "burn-core/vulkan", "burn-wgpu/vulkan"]
41+
webgpu = ["wgpu", "burn-core/webgpu", "burn-wgpu/webgpu"]
42+
metal = ["wgpu", "burn-core/metal", "burn-wgpu/metal"]
43+
cpu = ["cubecl-backend", "burn-core/cpu", "burn-cpu"]
4344
flex = ["burn-core/flex", "burn-flex"]
4445
tch = ["burn-core/tch", "burn-tch"]
4546

@@ -73,7 +74,9 @@ paste = { workspace = true }
7374
serde = { workspace = true }
7475

7576
# Backends
77+
burn-cpu = { workspace = true, optional = true }
7678
burn-cuda = { workspace = true, optional = true }
7779
burn-wgpu = { workspace = true, optional = true }
80+
burn-rocm = { workspace = true, optional = true }
7881
burn-flex = { workspace = true, optional = true, features = ["default"]}
7982
burn-tch = { workspace = true, optional = true, features = ["default"]}

xtask/src/commands/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ pub(crate) fn handle_command(
341341
)?;
342342
helpers::custom_crates_tests(
343343
vec!["burn-vision"],
344-
handle_test_args(&[], args.release),
344+
handle_test_args(&["--features", "metal"], args.release),
345345
None,
346346
None,
347347
"std metal",

0 commit comments

Comments
 (0)