OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
cub::BlockScanRunningPrefixOp< T, ScanOpT > Struct Template Reference

< Wrapped scan operator type More...

Detailed Description

template<typename T, typename ScanOpT>
struct cub::BlockScanRunningPrefixOp< T, ScanOpT >

< 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.
 
running_total
 Running block-wide prefix.
 

Member Function Documentation

◆ operator()()

template<typename T, typename ScanOpT>
__device__ __forceinline__ T cub::BlockScanRunningPrefixOp< T, ScanOpT >::operator() ( const T &  block_aggregate)
inline

Prefix callback operator. Returns the block-wide running_total in thread-0.

Parameters
block_aggregateThe aggregate sum of the BlockScan inputs

Definition at line 88 of file single_pass_scan_operators.cuh.


The documentation for this struct was generated from the following file: