OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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.
 

Constructor & Destructor Documentation

◆ BlockScanRunningPrefixOp() [1/2]

template<typename T , typename ScanOpT >
__device__ __forceinline__ cub::BlockScanRunningPrefixOp< T, ScanOpT >::BlockScanRunningPrefixOp ( ScanOpT  op)
inline

Constructor.

Definition at line 71 of file single_pass_scan_operators.cuh.

◆ BlockScanRunningPrefixOp() [2/2]

template<typename T , typename ScanOpT >
__device__ __forceinline__ cub::BlockScanRunningPrefixOp< T, ScanOpT >::BlockScanRunningPrefixOp ( starting_prefix,
ScanOpT  op 
)
inline

Constructor.

Definition at line 77 of file single_pass_scan_operators.cuh.

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.

Field Documentation

◆ op

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

Wrapped scan operator.

Definition at line 67 of file single_pass_scan_operators.cuh.

◆ running_total

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

Running block-wide prefix.

Definition at line 68 of file single_pass_scan_operators.cuh.


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