OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
cub::BlockHistogramAtomic< BINS > Struct Template Reference

The BlockHistogramAtomic class provides atomic-based methods for constructing block-wide histograms from data samples partitioned across a CUDA thread block. More...

Detailed Description

template<int BINS>
struct cub::BlockHistogramAtomic< BINS >

The BlockHistogramAtomic class provides atomic-based methods for constructing block-wide histograms from data samples partitioned across a CUDA thread block.

Definition at line 49 of file block_histogram_atomic.cuh.

Data Structures

struct  TempStorage
 Shared memory storage layout type. More...
 

Public Member Functions

__device__ __forceinline__ BlockHistogramAtomic (TempStorage &temp_storage)
 Constructor.
 
template<typename T , typename CounterT , int ITEMS_PER_THREAD>
__device__ __forceinline__ void Composite (T(&items)[ITEMS_PER_THREAD], CounterT histogram[BINS])
 Composite data onto an existing histogram.
 

Constructor & Destructor Documentation

◆ BlockHistogramAtomic()

template<int BINS>
__device__ __forceinline__ cub::BlockHistogramAtomic< BINS >::BlockHistogramAtomic ( TempStorage temp_storage)
inline

Constructor.

Definition at line 56 of file block_histogram_atomic.cuh.

Member Function Documentation

◆ Composite()

template<int BINS>
template<typename T , typename CounterT , int ITEMS_PER_THREAD>
__device__ __forceinline__ void cub::BlockHistogramAtomic< BINS >::Composite ( T(&)  items[ITEMS_PER_THREAD],
CounterT  histogram[BINS] 
)
inline

Composite data onto an existing histogram.

Parameters
[in]itemsCalling thread's input values to histogram
[out]histogramReference to shared/device-accessible memory histogram

Definition at line 66 of file block_histogram_atomic.cuh.


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