Skip to content

Commit

Permalink
Fix an off-by-one error in the workgroup creation caught by the Raspb…
Browse files Browse the repository at this point in the history
…erry Pi (#767)
  • Loading branch information
dfellis committed Jun 12, 2024
1 parent 7c201cf commit 5e45849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2219,7 +2219,7 @@ fn GPGPU_new_easy<'a>(source: &mut String, buffer: &'a mut wgpu::Buffer) -> GPGP
let y_div = z_rem / 65535;
let y = y_div + 1;
let y_rem = z_rem.wrapping_rem(65535);
let x = y_rem + 1;
let x = std::cmp::max(y_rem, 1);
GPGPU::new(source.clone(), vec![vec![buffer]], [x, y, z])
}

Expand Down

0 comments on commit 5e45849

Please sign in to comment.