https://hgpu.org/?p=12244
Parallel Prefix Scan with Compute Unified Device Architecture (CUDA)