The BlockHistogramSort class provides sorting-based methods for constructing block-wide histograms from data samples partitioned across a CUDA thread block. More...
The BlockHistogramSort class provides sorting-based methods for constructing block-wide histograms from data samples partitioned across a CUDA thread block.
< The PTX compute capability for which to to specialize this collective
Definition at line 60 of file block_histogram_sort.cuh.
Data Structures | |
| union | _TempStorage |
| Shared memory. More... | |
| struct | DiscontinuityOp |
| struct | TempStorage |
| Alias wrapper allowing storage to be unioned. More... | |
Public Types | |
| enum | { BLOCK_THREADS = BLOCK_DIM_X * BLOCK_DIM_Y * BLOCK_DIM_Z } |
| Constants. More... | |
| typedef BlockRadixSort< T, BLOCK_DIM_X, ITEMS_PER_THREAD, NullType, 4,(PTX_ARCH >=350) ? true :false, BLOCK_SCAN_WARP_SCANS, cudaSharedMemBankSizeFourByte, BLOCK_DIM_Y, BLOCK_DIM_Z, PTX_ARCH > | BlockRadixSortT |
| typedef BlockDiscontinuity< T, BLOCK_DIM_X, BLOCK_DIM_Y, BLOCK_DIM_Z, PTX_ARCH > | BlockDiscontinuityT |
Public Member Functions | |
| __device__ __forceinline__ | BlockHistogramSort (TempStorage &temp_storage) |
| Constructor. | |
| template<typename CounterT > | |
| __device__ __forceinline__ void | Composite (T(&items)[ITEMS_PER_THREAD], CounterT histogram[BINS]) |
Data Fields | |
| _TempStorage & | temp_storage |
| unsigned int | linear_tid |
| typedef BlockDiscontinuity< T, BLOCK_DIM_X, BLOCK_DIM_Y, BLOCK_DIM_Z, PTX_ARCH> cub::BlockHistogramSort< T, BLOCK_DIM_X, ITEMS_PER_THREAD, BINS, BLOCK_DIM_Y, BLOCK_DIM_Z, PTX_ARCH >::BlockDiscontinuityT |
Definition at line 91 of file block_histogram_sort.cuh.
| typedef BlockRadixSort< T, BLOCK_DIM_X, ITEMS_PER_THREAD, NullType, 4, (PTX_ARCH >= 350) ? true : false, BLOCK_SCAN_WARP_SCANS, cudaSharedMemBankSizeFourByte, BLOCK_DIM_Y, BLOCK_DIM_Z, PTX_ARCH> cub::BlockHistogramSort< T, BLOCK_DIM_X, ITEMS_PER_THREAD, BINS, BLOCK_DIM_Y, BLOCK_DIM_Z, PTX_ARCH >::BlockRadixSortT |
Definition at line 82 of file block_histogram_sort.cuh.
| anonymous enum |
Constants.
| Enumerator | |
|---|---|
| BLOCK_THREADS | The thread block size in threads. |
Definition at line 63 of file block_histogram_sort.cuh.
|
inline |
Constructor.
Definition at line 121 of file block_histogram_sort.cuh.
|
inline |
| [in] | items | Calling thread's input values to histogram |
| [out] | histogram | Reference to shared/device-accessible memory histogram |
Definition at line 162 of file block_histogram_sort.cuh.
| unsigned int cub::BlockHistogramSort< T, BLOCK_DIM_X, ITEMS_PER_THREAD, BINS, BLOCK_DIM_Y, BLOCK_DIM_Z, PTX_ARCH >::linear_tid |
Definition at line 117 of file block_histogram_sort.cuh.
| _TempStorage& cub::BlockHistogramSort< T, BLOCK_DIM_X, ITEMS_PER_THREAD, BINS, BLOCK_DIM_Y, BLOCK_DIM_Z, PTX_ARCH >::temp_storage |
Definition at line 116 of file block_histogram_sort.cuh.