We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3169921 commit 5fd5be4Copy full SHA for 5fd5be4
1 file changed
rustorch-wgpu/src/lib.rs
@@ -155,7 +155,7 @@ impl WgpuContext {
155
let mut cpass = encoder.begin_compute_pass(&wgpu::ComputePassDescriptor { label: None, timestamp_writes: None });
156
cpass.set_pipeline(&pipeline);
157
cpass.set_bind_group(0, &bind_group, &[]);
158
- let workgroup_count = (size as u32 + 63) / 64;
+ let workgroup_count = (size as u32).div_ceil(64);
159
cpass.dispatch_workgroups(workgroup_count, 1, 1);
160
}
161
0 commit comments