Skip to content

Commit abb67da

Browse files
lagguiHelios113
authored andcommitted
Fix cubecl std usage (tracel-ai#3306)
1 parent 40c71bf commit abb67da

File tree

14 files changed

+31
-38
lines changed

14 files changed

+31
-38
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ chrono = "0.4.39"
109109
os_info = "3.10.0"
110110
wsl = "0.1.0"
111111

112-
# TODO: update to official 2.0 release once MSRV is bumped to 1.85
113112
bincode = { version = "2.0.1", features = [
114113
"alloc",
115114
"serde",
@@ -158,17 +157,14 @@ portable-atomic = { version = "1.11.1" }
158157
portable-atomic-util = { version = "0.2.4", features = ["alloc"] }
159158

160159
### For the main burn branch. ###
161-
cubecl = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "c5817b4e6bc355d9f231a411927c72c637699a09" }
162-
cubecl-common = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "c5817b4e6bc355d9f231a411927c72c637699a09" }
163-
cubecl-std = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "c5817b4e6bc355d9f231a411927c72c637699a09" }
160+
cubecl = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "4dc928dbd34c59884ba774893df4331462a71386" }
161+
cubecl-common = { git = "https://github.com/tracel-ai/cubecl", default-features = false, rev = "4dc928dbd34c59884ba774893df4331462a71386" }
164162
### For local development. ###
165163
# cubecl = { path = "../cubecl/crates/cubecl", default-features = false }
166164
# cubecl-common = { path = "../cubecl/crates/cubecl-common", default-features = false }
167-
# cubecl-std = { path = "../cubecl/crates/cubecl-std", default-features = false }
168165
### For the release. ###
169166
# cubecl = { version = "0.5.0", default-features = false }
170167
# cubecl-common = { version = "0.5.0", default-features = false }
171-
# cubecl-std = { version = "0.5.0", default-features = false }
172168

173169
### For xtask crate ###
174170
tracel-xtask = { version = "=1.1.9" }

crates/burn-cubecl-fusion/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ burn-tensor = { path = "../burn-tensor", version = "0.18.0", default-features =
2929
"cubecl",
3030
] }
3131
cubecl = { workspace = true, features = ["matmul", "convolution", "reduce"] }
32-
cubecl-std = { workspace = true }
3332

3433
half = { workspace = true }
3534
serde = { workspace = true }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ use cubecl::matmul::kernels::matmul::double_buffering::CyclicDoubleBufferingAlgo
2222
use cubecl::matmul::kernels::matmul::launch_kernel_virtual;
2323
use cubecl::matmul::kernels::matmul::simple::SimpleAlgorithm;
2424
use cubecl::matmul::kernels::{MatmulAvailabilityError, MatmulSetupError};
25+
use cubecl::std::tensor::{MatrixBatchLayout, matrix_batch_layout};
2526
use cubecl::{client::ComputeClient, prelude::*};
26-
use cubecl_std::tensor::{MatrixBatchLayout, matrix_batch_layout};
2727
use half::{bf16, f16};
2828
use serde::{Deserialize, Serialize};
2929

crates/burn-cubecl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ cubecl = { workspace = true, features = [
6060
"convolution",
6161
"reduce",
6262
"random",
63+
"stdlib",
6364
] }
64-
cubecl-std = { workspace = true }
6565

6666
bytemuck = { workspace = true }
6767
derive-new = { workspace = true }

crates/burn-cubecl/src/kernel/conv/direct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use burn_tensor::ops::{ConvOptions, conv::calculate_conv_output_sizes};
2+
use cubecl::std::{CubeOption, CubeOptionExpand, FastDivmod};
23
use cubecl::{
34
calculate_cube_count_elemwise, convolution::ConvLaunchError, prelude::*,
45
std::tensor::StridedLayout, tensor_line_size_parallel,
56
};
6-
use cubecl_std::{CubeOption, CubeOptionExpand, FastDivmod};
77

88
use crate::{
99
CubeElement, CubeRuntime,

crates/burn-cubecl/src/kernel/conv/im2col.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ use burn_tensor::{
33
ops::{ConvOptions, conv::calculate_conv_output_sizes},
44
};
55
use core::iter;
6+
use cubecl::std::{FastDivmod, FastDivmodArgs};
67
use cubecl::{
78
calculate_cube_count_elemwise,
89
convolution::ConvLaunchError,
910
intrinsic,
1011
prelude::*,
1112
std::tensor::{TensorHandle, into_contiguous_pitched},
1213
};
13-
use cubecl_std::{FastDivmod, FastDivmodArgs};
1414

1515
use crate::{
1616
CubeElement, CubeRuntime, FloatElement,

crates/burn-cubecl/src/kernel/index/slice_assign.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{CubeRuntime, element::CubeElement, tensor::CubeTensor};
2+
use cubecl::std::{FastDivmod, FastDivmodArgs};
23
use cubecl::{calculate_cube_count_elemwise, prelude::*};
3-
use cubecl_std::{FastDivmod, FastDivmodArgs};
44
use std::ops::Range;
55

66
#[cube(launch_unchecked)]

crates/burn-cubecl/src/kernel/interpolate/bicubic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
use cubecl::std::FastDivmod;
12
use cubecl::{calculate_cube_count_elemwise, prelude::*, std::tensor::StridedLayout};
2-
use cubecl_std::FastDivmod;
33

44
use crate::{
55
CubeRuntime, FloatElement,

crates/burn-cubecl/src/kernel/interpolate/bilinear.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
use cubecl::std::FastDivmod;
12
use cubecl::{calculate_cube_count_elemwise, prelude::*, std::tensor::StridedLayout};
2-
use cubecl_std::FastDivmod;
33

44
use crate::{
55
CubeRuntime, FloatElement,

0 commit comments

Comments
 (0)