CMS 3D CMS Logo

SiPixelClustersCUDA.cc
Go to the documentation of this file.
5 
6 SiPixelClustersCUDA::SiPixelClustersCUDA(size_t maxModules, cudaStream_t stream)
7  : moduleStart_d(cms::cuda::make_device_unique<uint32_t[]>(maxModules + 1, stream)),
8  clusInModule_d(cms::cuda::make_device_unique<uint32_t[]>(maxModules, stream)),
9  moduleId_d(cms::cuda::make_device_unique<uint32_t[]>(maxModules, stream)),
10  clusModuleStart_d(cms::cuda::make_device_unique<uint32_t[]>(maxModules + 1, stream)) {
11  auto view = cms::cuda::make_host_unique<DeviceConstView>(stream);
14  view->moduleId_ = moduleId_d.get();
16 
17  view_d = cms::cuda::make_device_unique<DeviceConstView>(stream);
19 }
SiPixelClustersCUDA::view
DeviceConstView * view() const
Definition: SiPixelClustersCUDA.h:48
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
SiPixelClustersCUDA::DeviceConstView::moduleId_
const uint32_t * moduleId_
Definition: SiPixelClustersCUDA.h:44
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
SiPixelClustersCUDA::moduleId_d
cms::cuda::device::unique_ptr< uint32_t[]> moduleId_d
Definition: SiPixelClustersCUDA.h:53
SiPixelClustersCUDA::moduleStart_d
cms::cuda::device::unique_ptr< uint32_t[]> moduleStart_d
Definition: SiPixelClustersCUDA.h:51
SiPixelClustersCUDA::clusModuleStart_d
cms::cuda::device::unique_ptr< uint32_t[]> clusModuleStart_d
Definition: SiPixelClustersCUDA.h:56
device_unique_ptr.h
SiPixelClustersCUDA.h
host_unique_ptr.h
SiPixelClustersCUDA::DeviceConstView::clusModuleStart_
const uint32_t * clusModuleStart_
Definition: SiPixelClustersCUDA.h:45
SiPixelClustersCUDA::DeviceConstView::clusInModule_
const uint32_t * clusInModule_
Definition: SiPixelClustersCUDA.h:43
SiPixelClustersCUDA::clusInModule_d
cms::cuda::device::unique_ptr< uint32_t[]> clusInModule_d
Definition: SiPixelClustersCUDA.h:52
copyAsync.h
SiPixelClustersCUDA::SiPixelClustersCUDA
SiPixelClustersCUDA()=default
ecalDigis_cff.cuda
cuda
Definition: ecalDigis_cff.py:35
SiPixelClustersCUDA::view_d
cms::cuda::device::unique_ptr< DeviceConstView > view_d
Definition: SiPixelClustersCUDA.h:58
SiPixelClustersCUDA::DeviceConstView::moduleStart_
const uint32_t * moduleStart_
Definition: SiPixelClustersCUDA.h:42
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