cub icon indicating copy to clipboard operation
cub copied to clipboard

Document and test WarpScan::Scan's treatment of `init` argument

Open jszuppe opened this issue 7 years ago • 1 comments

...
int input = 1;
int init = 10;
int inclusive_output, exclusive_output;

using WarpScan = cub::WarpScan<int, 32>;
__shared__ typename WarpScan::TempStorage storage[warps_no];
WarpScan(storage[warp_id])
    .Scan(input, inclusive_output, exclusive_output, init, cub::Sum());
...

Should inclusive_output after calling WarpScan::Scan(..) function include init? Right now it does, but WarpScan::Scan's documentation is unclear about it.

jszuppe avatar Feb 23 '18 16:02 jszuppe

We should update the docs and add a test, if needed.

alliepiper avatar Oct 20 '20 22:10 alliepiper