![]() |
![]() |
#include <HistoContainer.h>
Public Types | |
using | Counter = uint32_t |
using | CountersOnly = HistoContainer< T, NBINS, 0, S, I, NHISTS > |
using | index_type = I |
using | UT = typename std::make_unsigned< T >::type |
Public Member Functions | |
__host__ __device__ | __attribute__ ((always_inline)) int32_t bulkFill(AtomicPairCounter &apc |
__host__ __device__ | __attribute__ ((always_inline)) void add(CountersOnly const &co) |
__host__ __device__ | __attribute__ ((always_inline)) void bulkFinalize(AtomicPairCounter const &apc) |
__host__ __device__ | __attribute__ ((always_inline)) void bulkFinalizeFill(AtomicPairCounter const &apc) |
__host__ __device__ | __attribute__ ((always_inline)) void count(T t |
__host__ __device__ | __attribute__ ((always_inline)) void count(T t) |
__host__ __device__ | __attribute__ ((always_inline)) void countDirect(T b) |
__host__ __device__ | __attribute__ ((always_inline)) void fill(T t |
__host__ __device__ | __attribute__ ((always_inline)) void fill(T t |
__host__ __device__ | __attribute__ ((always_inline)) void fillDirect(T b |
__host__ __device__ | __attribute__ ((always_inline)) void final ize(Counter *ws |
assert (b< nbins()) | |
assert (b< nbins()) | |
assert (b< nbins()) | |
assert (b< totbins()) | |
assert (b< totbins()) | |
assert (w > 0) | |
assert (w > 0) | |
assert (w > 0) | |
atomicIncrement (off[b]) | |
for (uint32_t j=0;j< n;++j) bins[c.n+j] | |
if (c.m >=nbins()) return -int32_t(c.m) | |
__host__ __device__ void | zero () |
Static Public Member Functions | |
static __host__ __device__ | __attribute__ ((always_inline)) uint32_t atomicDecrement(Counter &x) |
static __host__ __device__ | __attribute__ ((always_inline)) uint32_t atomicIncrement(Counter &x) |
static constexpr UT | bin (T t) |
static constexpr uint32_t | capacity () |
static constexpr auto | histOff (uint32_t nh) |
static constexpr uint32_t | ilog2 (uint32_t v) |
static constexpr uint32_t | nbins () |
static constexpr uint32_t | nbits () |
static constexpr uint32_t | nhists () |
static constexpr uint32_t | sizeT () |
static constexpr uint32_t | totbins () |
Public Attributes | |
b = histOff(nh) | |
index_type | bins [capacity()] |
bins [w - 1] = j | |
__host__ __device__ index_type | j |
return c | m |
__host__ __device__ const index_type uint32_t | n |
__host__ __device__ uint32_t | nh |
__host__ __device__ index_type uint32_t | nh |
off [c.m] = c.n | |
int32_t | psws |
__host__ __device__ const index_type * | v |
auto | w = atomicDecrement(off[b]) |
Definition at line 152 of file HistoContainer.h.
using cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::Counter = uint32_t |
Definition at line 154 of file HistoContainer.h.
using cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::CountersOnly = HistoContainer<T, NBINS, 0, S, I, NHISTS> |
Definition at line 156 of file HistoContainer.h.
using cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::index_type = I |
Definition at line 158 of file HistoContainer.h.
using cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::UT = typename std::make_unsigned<T>::type |
Definition at line 159 of file HistoContainer.h.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Definition at line 249 of file HistoContainer.h.
|
inline |
|
inline |
|
inline |
Definition at line 223 of file HistoContainer.h.
|
inline |
|
inline |
|
inline |
|
inlinefinal |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::assert | ( | ) |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::assert | ( | ) |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::assert | ( | ) |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::assert | ( | ) |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::assert | ( | ) |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::assert | ( | w | , |
0 | |||
) |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::assert | ( | w | , |
0 | |||
) |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::assert | ( | w | , |
0 | |||
) |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::atomicIncrement | ( | off | [b] | ) |
|
inlinestaticconstexpr |
Definition at line 183 of file HistoContainer.h.
Referenced by gpuPixelDoublets::for(), and gpuVertexFinder::while().
|
inlinestaticconstexpr |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::for | ( | ) |
|
inlinestaticconstexpr |
Definition at line 181 of file HistoContainer.h.
Referenced by gpuPixelDoublets::for().
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::if | ( | c.m >= | nbins() | ) |
|
inlinestaticconstexpr |
Definition at line 161 of file HistoContainer.h.
|
inlinestaticconstexpr |
Definition at line 175 of file HistoContainer.h.
Referenced by gpuVertexFinder::__attribute__(), gpuPixelDoublets::for(), and gpuVertexFinder::while().
|
inlinestaticconstexpr |
Definition at line 178 of file HistoContainer.h.
|
inlinestaticconstexpr |
Definition at line 176 of file HistoContainer.h.
|
inlinestaticconstexpr |
Definition at line 174 of file HistoContainer.h.
|
inlinestaticconstexpr |
|
inline |
Definition at line 189 of file HistoContainer.h.
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::b = histOff(nh) |
Definition at line 279 of file HistoContainer.h.
index_type cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::bins[capacity()] |
Definition at line 311 of file HistoContainer.h.
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::bins[w - 1] = j |
Definition at line 232 of file HistoContainer.h.
__host__ __device__ index_type cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::j |
Definition at line 228 of file HistoContainer.h.
return c cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::m |
Definition at line 242 of file HistoContainer.h.
Referenced by cms::cuda::HistoContainer< hindex_type, S, 5 *S >::__attribute__(), and if().
__host__ __device__ const index_type uint32_t cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::n |
Definition at line 235 of file HistoContainer.h.
Referenced by cms::cuda::HistoContainer< hindex_type, S, 5 *S >::__attribute__().
__host__ __device__ uint32_t cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::nh |
Definition at line 276 of file HistoContainer.h.
__host__ __device__ index_type uint32_t cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::nh |
Definition at line 284 of file HistoContainer.h.
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::off[c.m] = c.n |
Definition at line 239 of file HistoContainer.h.
Referenced by gpuVertexFinder::__attribute__(), and gpuVertexFinder::for().
int32_t cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::psws |
Definition at line 310 of file HistoContainer.h.
__host__ __device__ const index_type* cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::v |
Definition at line 235 of file HistoContainer.h.
auto cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::w = atomicDecrement(off[b]) |
Definition at line 230 of file HistoContainer.h.