https://hgpu.org/?p=10567
Optimization solutions for the segmented sum algorithmic function