Skip to content

Commit caba944

Browse files
authored
Fix fusion no default feat (#3408)
* Fix no default features autotune * Add default/std
1 parent 5d9178b commit caba944

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

crates/burn-cubecl-fusion/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ version.workspace = true
1515
workspace = true
1616

1717
[features]
18-
default = ["autotune", "std", "cubecl/default"]
18+
default = ["autotune", "std", "cubecl/default", "burn-fusion/default"]
1919
autotune = []
2020
doc = ["default"]
21-
std = ["cubecl/std", "burn-tensor/std"]
21+
std = ["cubecl/std", "burn-tensor/std", "burn-fusion/std"]
2222
autotune-checks = ["cubecl/autotune-checks"]
2323

2424
[dependencies]
2525
burn-common = { path = "../burn-common", version = "0.19.0" }
26-
burn-fusion = { path = "../burn-fusion", version = "0.19.0" }
26+
burn-fusion = { path = "../burn-fusion", version = "0.19.0", default-features = false }
2727
burn-ir = { path = "../burn-ir", version = "0.19.0", default-features = false }
2828
burn-tensor = { path = "../burn-tensor", version = "0.19.0", default-features = false, features = [
2929
"cubecl",

crates/burn-cubecl-fusion/src/matmul/optimization.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ impl<R: Runtime> MatmulOptimization<R> {
222222
fused_matmul_autotune::<R, BT>(arg, context);
223223

224224
#[cfg(not(feature = "autotune"))]
225-
if self.execute_fused::<BT, Simple>(context).is_err() {
226-
self.execute_fallback::<BT>(context);
225+
if arg.execute_fused::<BT, Simple>(context).is_err() {
226+
arg.execute_fallback::<BT>(context);
227227
}
228228
}
229229

crates/burn-cubecl-fusion/src/reduce/optimization.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ impl<R: Runtime> ReduceOptimization<R> {
265265
fused_reduce_autotune::<R, BT>(arg, context);
266266

267267
#[cfg(not(feature = "autotune"))]
268-
if self.execute_fused_reduce::<BT>(context).is_err() {
269-
self.execute_fallback::<BT>(context);
268+
if arg.execute_fused_reduce::<BT>(context).is_err() {
269+
arg.execute_fallback::<BT>(context);
270270
}
271271
}
272272

crates/burn-cubecl/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ default = [
2727
"std",
2828
"fusion",
2929
"cubecl/default",
30-
"burn-cubecl-fusion/default",
30+
"burn-fusion?/default",
31+
"burn-cubecl-fusion?/default",
3132
]
3233
doc = ["default"]
3334
export_tests = [
@@ -44,14 +45,14 @@ export_tests = [
4445
]
4546
fusion = ["burn-fusion", "burn-cubecl-fusion"]
4647
fusion-experimental = ["fusion"]
47-
std = ["cubecl/std", "burn-tensor/std"]
48+
std = ["cubecl/std", "burn-tensor/std", "burn-fusion?/std", "burn-cubecl-fusion?/std"]
4849

4950
template = []
5051

5152
[dependencies]
5253
burn-common = { path = "../burn-common", version = "0.19.0" }
53-
burn-fusion = { path = "../burn-fusion", version = "0.19.0", optional = true }
54-
burn-cubecl-fusion = { path = "../burn-cubecl-fusion", version = "0.19.0", optional = true }
54+
burn-fusion = { path = "../burn-fusion", version = "0.19.0", default-features = false, optional = true }
55+
burn-cubecl-fusion = { path = "../burn-cubecl-fusion", version = "0.19.0", default-features = false, optional = true }
5556
burn-ir = { path = "../burn-ir", version = "0.19.0", default-features = false }
5657
burn-tensor = { path = "../burn-tensor", version = "0.19.0", default-features = false, features = [
5758
"cubecl",

0 commit comments

Comments
 (0)