Merge cumsum_cpu