SIMD prefix sum on Intel cpu

The fastest parallel prefix sum algorithm I know of is to run over the sum in two passes in parallel and use SSE as well in the second pass. In the first pass you calculate partial sums in parallel and store the total sum for each partial sum. In the second pass you add the … Read more