#include <HistoContainer.h>
Public Types | |
using | Base = OneToManyAssoc< I, NHISTS *NBINS+1, SIZE > |
using | Counter = typename Base::Counter |
using | index_type = typename Base::index_type |
using | UT = typename std::make_unsigned< T >::type |
using | View = typename Base::View |
Public Types inherited from cms::cuda::OneToManyAssoc< I, NHISTS *NBINS+1, SIZE > | |
using | Counter = uint32_t |
using | CountersOnly = OneToManyAssoc< I, ONES, 0 > |
using | index_type = I |
using | View = OneToManyAssocView< OneToManyAssoc< I, ONES, SIZE > > |
Public Member Functions | |
__host__ __device__ | __attribute__ ((always_inline)) void count(T t) |
__host__ __device__ | __attribute__ ((always_inline)) void fill(T t |
__host__ __device__ | __attribute__ ((always_inline)) void count(T t |
__host__ __device__ | __attribute__ ((always_inline)) void fill(T t |
assert (b< nbins()) | |
assert (w > 0) | |
assert (b< nbins()) | |
assert (b< totbins()) | |
assert (b< nbins()) | |
assert (b< totbins()) | |
assert (w > 0) | |
Base::atomicIncrement (this->off[b]) | |
Public Member Functions inherited from cms::cuda::OneToManyAssoc< I, NHISTS *NBINS+1, SIZE > | |
__host__ __device__ | __attribute__ ((always_inline)) void add(CountersOnly const &co) |
__host__ __device__ | __attribute__ ((always_inline)) void count(int32_t b) |
__host__ __device__ | __attribute__ ((always_inline)) void fill(int32_t b |
__host__ __device__ | __attribute__ ((always_inline)) int32_t bulkFill(AtomicPairCounter &apc |
__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 final ize(Counter *ws |
assert (w > 0) | |
constexpr auto | capacity () const |
for (uint32_t j=0;j< n;++j) content[c.n+j] | |
if (int(c.m) >=nOnes()) return -int32_t(c.m) | |
__host__ __device__ void | initStorage (View view) |
constexpr auto | nOnes () const |
constexpr auto | totOnes () const |
__host__ __device__ void | zero () |
Static Public Member Functions | |
static constexpr UT | bin (T t) |
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 () |
Static Public Member Functions inherited from cms::cuda::OneToManyAssoc< I, NHISTS *NBINS+1, SIZE > | |
static __host__ __device__ | __attribute__ ((always_inline)) uint32_t atomicIncrement(Counter &x) |
static __host__ __device__ | __attribute__ ((always_inline)) uint32_t atomicDecrement(Counter &x) |
static constexpr int32_t | ctCapacity () |
static constexpr int32_t | ctNOnes () |
static constexpr uint32_t | ilog2 (uint32_t v) |
Public Attributes | |
b = histOff(nh) | |
this | content [w - 1] = j |
__host__ __device__ index_type | j |
__host__ __device__ uint32_t | nh |
__host__ __device__ index_type uint32_t | nh |
auto | w = Base::atomicDecrement(this->off[b]) |
Public Attributes inherited from cms::cuda::OneToManyAssoc< I, NHISTS *NBINS+1, SIZE > | |
content [w - 1] | |
FlexiStorage< index_type, SIZE > | content |
__host__ __device__ index_type | j |
return c | m |
__host__ __device__ index_type const uint32_t | n |
off [c.m] | |
__host__ __device__ ONES | off |
int32_t | psws |
__host__ __device__ index_type const * | v |
auto | w |
Definition at line 101 of file HistoContainer.h.
using cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::Base = OneToManyAssoc<I, NHISTS * NBINS + 1, SIZE> |
Definition at line 103 of file HistoContainer.h.
using cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::Counter = typename Base::Counter |
Definition at line 105 of file HistoContainer.h.
using cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::index_type = typename Base::index_type |
Definition at line 106 of file HistoContainer.h.
using cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::UT = typename std::make_unsigned<T>::type |
Definition at line 107 of file HistoContainer.h.
using cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::View = typename Base::View |
Definition at line 104 of file HistoContainer.h.
|
inline |
Definition at line 138 of file HistoContainer.h.
References cms::cuda::assert(), b, newFWLiteAna::bin, LaserClient_cfi::nbins, and submitPVValidationJobs::t.
|
inline |
|
inline |
|
inline |
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 | ( | ) |
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 >::Base::atomicIncrement | ( | this-> | off[b] | ) |
|
inlinestatic |
Definition at line 132 of file HistoContainer.h.
References ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, edm::shift, and submitPVValidationJobs::t.
Referenced by gpuVertexFinder::while().
|
inlinestatic |
|
inlinestatic |
Definition at line 109 of file HistoContainer.h.
References b, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), mps_fire::i, alignCSCRings::s, and cms::cuda::v.
|
inlinestatic |
Definition at line 123 of file HistoContainer.h.
References NBINS.
Referenced by gpuVertexFinder::while().
|
inlinestatic |
Definition at line 126 of file HistoContainer.h.
References trklet::ilog2(), and NBINS.
|
inlinestatic |
Definition at line 124 of file HistoContainer.h.
|
inlinestatic |
Definition at line 122 of file HistoContainer.h.
|
inlinestatic |
cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::b = histOff(nh) |
Definition at line 155 of file HistoContainer.h.
this cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::content = j |
Definition at line 149 of file HistoContainer.h.
Referenced by python.rootplot.utilities.Hist2D::_flat_content(), python.rootplot.root2matplotlib.Hist2D::box(), python.rootplot.root2matplotlib.Hist2D::col(), python.rootplot.root2matplotlib.Hist2D::contour(), python.rootplot.utilities.Hist2D::TH2F(), and python.rootplot.root2matplotlib.Hist2D::TH2F().
__host__ __device__ index_type cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::j |
Definition at line 144 of file HistoContainer.h.
__host__ __device__ uint32_t cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::nh |
Definition at line 152 of file HistoContainer.h.
__host__ __device__ index_type uint32_t cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::nh |
Definition at line 160 of file HistoContainer.h.
auto cms::cuda::HistoContainer< T, NBINS, SIZE, S, I, NHISTS >::w = Base::atomicDecrement(this->off[b]) |
Definition at line 147 of file HistoContainer.h.