Skip to main content

parallel_for

Function parallel_for 

Source
pub fn parallel_for(n: usize, chunk_size: usize, f: impl Fn(usize))
Expand description

Execute f(i) for i in 0..n, splitting into chunks of chunk_size.

Currently processes chunks sequentially; prefer parallel_sph_density and the other parallel kernels for performance-critical code.