Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielsimard committed Aug 25, 2024
1 parent 13c9b05 commit da9e6d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/cubecl-core/tests/error/for_loop_range.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: Invalid for loop: use [range](cubecl::prelude::range] instead.
error: Invalid for loop: use [range](cubecl::prelude::range] or [range_stepped](cubecl::prelude::range_stepped) instead.
--> tests/error/for_loop_range.rs:6:14
|
6 | for _ in 0..10 {}
Expand Down
4 changes: 2 additions & 2 deletions crates/cubecl-macros/src/codegen_function/branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ use super::{

/// Codegen of for loops
/// Supports range:
/// ```norun
/// ```ignore
/// for i in range(start, end, unroll) {...}
/// ```
/// and range_stepped:
/// ```norun
/// ```ignore
/// for i in range_stepped(start, end, step, unroll) {...}
/// ```
pub(crate) fn codegen_for_loop(
Expand Down
2 changes: 1 addition & 1 deletion crates/cubecl-wgpu/src/compiler/wgsl/shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ impl Display for Location {
impl Display for Visibility {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
// With the dynamic memory strategy we have to put everywhing read_write.
// With the dynamic memory strategy we have to put everything read_write.
#[cfg(not(simple_memory_management))]
Visibility::Read => f.write_str("read_write"),
// With the simple memory strategy we can use the correct visibility.
Expand Down

0 comments on commit da9e6d7

Please sign in to comment.