< Wrapped scan operator type More...
< 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.
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. | |
|
inline |
Constructor.
Definition at line 71 of file single_pass_scan_operators.cuh.
|
inline |
Constructor.
Definition at line 77 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.
ScanOpT cub::BlockScanRunningPrefixOp< T, ScanOpT >::op |
Wrapped scan operator.
Definition at line 67 of file single_pass_scan_operators.cuh.
T cub::BlockScanRunningPrefixOp< T, ScanOpT >::running_total |
Running block-wide prefix.
Definition at line 68 of file single_pass_scan_operators.cuh.