Skip to content

Commit 5fd5be4

Browse files
author
“thucydides”
committed
fix: Resolve clippy warning in rustorch-wgpu
1 parent 3169921 commit 5fd5be4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rustorch-wgpu/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl WgpuContext {
155155
let mut cpass = encoder.begin_compute_pass(&wgpu::ComputePassDescriptor { label: None, timestamp_writes: None });
156156
cpass.set_pipeline(&pipeline);
157157
cpass.set_bind_group(0, &bind_group, &[]);
158-
let workgroup_count = (size as u32 + 63) / 64;
158+
let workgroup_count = (size as u32).div_ceil(64);
159159
cpass.dispatch_workgroups(workgroup_count, 1, 1);
160160
}
161161

0 commit comments

Comments
 (0)