6 template <
typename TrackerTraits>
25 std::cout <<
"Allocation for tuple building. N hits " <<
nHits << std::endl;
32 this->hitToTupleView_.assoc = this->device_hitToTuple_.get();
33 this->hitToTupleView_.offStorage = this->device_hitToTupleStorage_.get();
34 this->hitToTupleView_.offSize =
nHits;
42 this->device_nCells_ = (uint32_t*)(this->device_storage_.get() + 2);
47 cudaCheck(cudaMemsetAsync(this->device_nCells_, 0,
sizeof(uint32_t),
stream));
49 this->device_cellCuts_.get(), &(this->params_.cellCuts_),
sizeof(
CellCuts), cudaMemcpyDefault,
stream));
51 *(this->device_nCells_) = 0;
52 *(this->device_cellCuts_.get()) = this->params_.cellCuts_;
54 cms::cuda::launchZero(this->device_tupleMultiplicity_.get(),
stream);
55 cms::cuda::launchZero(this->hitToTupleView_,
stream);
57 cudaDeviceSynchronize();
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void allocateOnGPU(int32_t nHits, cudaStream_t stream)
def template(fileName, svg, replaceme="REPLACEME")
void allocateOnGPU(int32_t nHits, cudaStream_t stream)
#define cudaCheck(ARG,...)
TupleMultiplicity< TrackerTraits > const *__restrict__ uint32_t nHits