NVIDIA / NVIDIA/cccl

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

Open
#850 2 comments 0 reactions 1 assignee Claimed by @gonidelis View on GitHub
cub
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

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

using WarpScan = cub::WarpScan;
__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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.