< Wrapped scan operator type More...
Public Member Functions | |
| __device__ __forceinline__ | BlockScanRunningPrefixOp (ScanOpT op) |
| Constructor. | |
| __device__ __forceinline__ | BlockScanRunningPrefixOp (T starting_prefix, ScanOpT op) |
| Constructor. | |
| __device__ __forceinline__ T | operator() (const T &block_aggregate) |
Data Fields | |
| ScanOpT | op |
| Wrapped scan operator. | |
| T | running_total |
| Running block-wide prefix. | |
< Wrapped scan operator type
Stateful callback operator type for supplying BlockScan prefixes. Maintains a running prefix that can be applied to consecutive BlockScan operations.
Definition at line 65 of file single_pass_scan_operators.cuh.
|
inline |
Prefix callback operator. Returns the block-wide running_total in thread-0.
| block_aggregate | The aggregate sum of the BlockScan inputs |
Definition at line 88 of file single_pass_scan_operators.cuh.