6 template <
typename TrackerTraits>
22 std::cout <<
"Allocation for tuple building. N hits " <<
nHits << std::endl;
29 this->hitToTupleView_.assoc = this->device_hitToTuple_.get();
30 this->hitToTupleView_.offStorage = this->device_hitToTupleStorage_.get();
31 this->hitToTupleView_.offSize =
nHits;
39 this->device_nCells_ = (uint32_t*)(this->device_storage_.get() + 2);
43 cudaCheck(cudaMemsetAsync(this->device_nCells_, 0,
sizeof(uint32_t),
stream));
45 *(this->device_nCells_) = 0;
47 cms::cuda::launchZero(this->device_tupleMultiplicity_.get(),
stream);
48 cms::cuda::launchZero(this->hitToTupleView_,
stream);
50 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