Skip to main content

dispatch_count

Function dispatch_count 

Source
pub fn dispatch_count(total: usize, group_size: usize) -> usize
Expand description

Compute the optimal work group size for a given total work item count.

Rounds up total to the next multiple of group_size.