Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chunks ¶ added in v0.20.0
Chunks returns a slice of [2]int where each element is a (start, end) range to be processed by a worker, exactly as Execute does.
func ExecuteAligned ¶ added in v0.20.0
ExecuteAligned is like Execute but ensures that chunk boundaries are aligned to the given alignment value (except possibly the last chunk). This is useful when work functions use SIMD operations that process elements in fixed-size blocks (e.g., 16 for AVX512), to avoid per-chunk tail handling.
Work is distributed evenly: tasks receive either k or k+alignment elements, where k is the largest multiple of alignment that fits. Any unaligned tail (nbIterations % alignment) is absorbed by the last task.
Types ¶
This section is empty.