36#include "../../util_namespace.cuh"
67 T (&items)[ITEMS_PER_THREAD],
68 CounterT histogram[BINS])
72 for (
int i = 0; i < ITEMS_PER_THREAD; ++i)
74 atomicAdd(histogram + items[i], 1);
Optional outer namespace(s)
Shared memory storage layout type.
The BlockHistogramAtomic class provides atomic-based methods for constructing block-wide histograms f...
__device__ __forceinline__ BlockHistogramAtomic(TempStorage &temp_storage)
Constructor.
__device__ __forceinline__ void Composite(T(&items)[ITEMS_PER_THREAD], CounterT histogram[BINS])
Composite data onto an existing histogram.