CMS 3D CMS Logo

SiPixelDigisCUDA.cc
Go to the documentation of this file.
5 
6 SiPixelDigisCUDA::SiPixelDigisCUDA(size_t maxFedWords, cudaStream_t stream)
7  : xx_d(cms::cuda::make_device_unique<uint16_t[]>(maxFedWords, stream)),
8  yy_d(cms::cuda::make_device_unique<uint16_t[]>(maxFedWords, stream)),
9  adc_d(cms::cuda::make_device_unique<uint16_t[]>(maxFedWords, stream)),
10  moduleInd_d(cms::cuda::make_device_unique<uint16_t[]>(maxFedWords, stream)),
11  clus_d(cms::cuda::make_device_unique<int32_t[]>(maxFedWords, stream)),
13  pdigi_d(cms::cuda::make_device_unique<uint32_t[]>(maxFedWords, stream)),
14  rawIdArr_d(cms::cuda::make_device_unique<uint32_t[]>(maxFedWords, stream)) {
15  auto view = cms::cuda::make_host_unique<DeviceConstView>(stream);
16  view->xx_ = xx_d.get();
17  view->yy_ = yy_d.get();
18  view->adc_ = adc_d.get();
19  view->moduleInd_ = moduleInd_d.get();
20  view->clus_ = clus_d.get();
22 }
23 
25  auto ret = cms::cuda::make_host_unique<uint16_t[]>(nDigis(), stream);
27  return ret;
28 }
29 
31  auto ret = cms::cuda::make_host_unique<int32_t[]>(nDigis(), stream);
33  return ret;
34 }
35 
37  auto ret = cms::cuda::make_host_unique<uint32_t[]>(nDigis(), stream);
39  return ret;
40 }
41 
43  auto ret = cms::cuda::make_host_unique<uint32_t[]>(nDigis(), stream);
45  return ret;
46 }
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:543
SiPixelDigisCUDA::rawIdArr_d
cms::cuda::device::unique_ptr< uint32_t[]> rawIdArr_d
Definition: SiPixelDigisCUDA.h:79
SiPixelDigisCUDA::adc_d
cms::cuda::device::unique_ptr< uint16_t[]> adc_d
Definition: SiPixelDigisCUDA.h:71
SiPixelDigisCUDA::SiPixelDigisCUDA
SiPixelDigisCUDA()=default
cms::cuda::make_device_unique
device::impl::make_device_unique_selector< T >::non_array make_device_unique(cudaStream_t stream)
Definition: device_unique_ptr.h:52
SiPixelDigisCUDA::DeviceConstView
Definition: SiPixelDigisCUDA.h:50
cms::cuda::stream
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Definition: HistoContainer.h:51
SiPixelDigisCUDA::pdigiToHostAsync
cms::cuda::host::unique_ptr< uint32_t[]> pdigiToHostAsync(cudaStream_t stream) const
Definition: SiPixelDigisCUDA.cc:36
device_unique_ptr.h
SiPixelDigisCUDA::pdigi_d
cms::cuda::device::unique_ptr< uint32_t[]> pdigi_d
Definition: SiPixelDigisCUDA.h:78
SiPixelDigisCUDA::view_d
cms::cuda::device::unique_ptr< DeviceConstView > view_d
Definition: SiPixelDigisCUDA.h:74
host_unique_ptr.h
SiPixelDigisCUDA::DeviceConstView::xx_
const uint16_t * xx_
Definition: SiPixelDigisCUDA.h:58
SiPixelDigisCUDA::adcToHostAsync
cms::cuda::host::unique_ptr< uint16_t[]> adcToHostAsync(cudaStream_t stream) const
Definition: SiPixelDigisCUDA.cc:24
SiPixelDigisCUDA::nDigis
uint32_t nDigis() const
Definition: SiPixelDigisCUDA.h:27
SiPixelDigisCUDA::DeviceConstView::moduleInd_
const uint16_t * moduleInd_
Definition: SiPixelDigisCUDA.h:61
SiPixelDigisCUDA::DeviceConstView::yy_
const uint16_t * yy_
Definition: SiPixelDigisCUDA.h:59
SiPixelDigisCUDA::moduleInd_d
cms::cuda::device::unique_ptr< uint16_t[]> moduleInd_d
Definition: SiPixelDigisCUDA.h:72
SiPixelDigisCUDA::DeviceConstView::clus_
const int32_t * clus_
Definition: SiPixelDigisCUDA.h:62
copyAsync.h
SiPixelDigisCUDA::yy_d
cms::cuda::device::unique_ptr< uint16_t[]> yy_d
Definition: SiPixelDigisCUDA.h:70
SiPixelDigisCUDA::xx_d
cms::cuda::device::unique_ptr< uint16_t[]> xx_d
Definition: SiPixelDigisCUDA.h:69
SiPixelDigisCUDA::clusToHostAsync
cms::cuda::host::unique_ptr< int32_t[]> clusToHostAsync(cudaStream_t stream) const
Definition: SiPixelDigisCUDA.cc:30
SiPixelDigisCUDA.h
SiPixelDigisCUDA::clus_d
cms::cuda::device::unique_ptr< int32_t[]> clus_d
Definition: SiPixelDigisCUDA.h:73
SiPixelDigisCUDA::view
const DeviceConstView * view() const
Definition: SiPixelDigisCUDA.h:65
SiPixelDigisCUDA::rawIdArrToHostAsync
cms::cuda::host::unique_ptr< uint32_t[]> rawIdArrToHostAsync(cudaStream_t stream) const
Definition: SiPixelDigisCUDA.cc:42
cms::cuda::host::unique_ptr
std::unique_ptr< T, impl::HostDeleter > unique_ptr
Definition: host_unique_ptr.h:21
ecalDigis_cff.cuda
cuda
Definition: ecalDigis_cff.py:35
SiPixelDigisCUDA::DeviceConstView::adc_
const uint16_t * adc_
Definition: SiPixelDigisCUDA.h:60
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
cms::cuda::copyAsync
void copyAsync(device::unique_ptr< T > &dst, const host::unique_ptr< T > &src, cudaStream_t stream)
Definition: copyAsync.h:20