Skip to content

Commit

Permalink
RUN cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtremblay committed Nov 22, 2024
1 parent e0a1fe8 commit d1778af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/cubecl-std/src/reduce/sum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ pub fn reduce_sum_lined<N: Numeric>(
reduce_sum_lines(&tmp.to_slice(), &mut output.to_slice_mut(), 1_u32);
}



/// Compute the sum of all elements of `input` and write it to the first element of `output`.
#[cube]
pub fn reduce_sum_vector<N: Numeric>(
Expand Down Expand Up @@ -105,7 +103,7 @@ pub fn reduce_sum_lines<N: Numeric>(
}
}

// Integer division rounded up.
// Integer division rounded up.
#[cube]
fn div_ceil(a: u32, b: u32) -> u32 {
a / b + ((a % b) > 0) as u32
Expand Down

0 comments on commit d1778af

Please sign in to comment.