7 template <
typename TrackerTraits>
26 std::cout <<
"Allocation for tuple building. N hits " <<
nHits << std::endl;
33 this->hitToTupleView_.assoc = this->device_hitToTuple_.get();
34 this->hitToTupleView_.offStorage = this->device_hitToTupleStorage_.get();
35 this->hitToTupleView_.offSize =
nHits;
43 this->device_nCells_ = (uint32_t*)(this->device_storage_.get() + 2);
48 cudaCheck(cudaMemsetAsync(this->device_nCells_, 0,
sizeof(uint32_t),
stream));
50 this->device_cellCuts_.get(), &(this->params_.cellCuts_),
sizeof(
CellCuts), cudaMemcpyDefault,
stream));
52 *(this->device_nCells_) = 0;
53 *(this->device_cellCuts_.get()) = this->params_.cellCuts_;
55 cms::cuda::launchZero(this->device_tupleMultiplicity_.get(),
stream);
56 cms::cuda::launchZero(this->hitToTupleView_,
stream);
58 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