CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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<SiPixelClustersCUDASOAView>(stream);
14  view->moduleId_ = moduleId_d.get();
16 
17  view_d = cms::cuda::make_device_unique<SiPixelClustersCUDASOAView>(stream);
19 }
SiPixelClustersCUDASOAView const * view() const
cms::cuda::device::unique_ptr< uint32_t[]> moduleStart_d
cms::cuda::device::unique_ptr< SiPixelClustersCUDASOAView > view_d
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
cms::cuda::device::unique_ptr< uint32_t[]> moduleId_d
void copyAsync(device::unique_ptr< T > &dst, const host::unique_ptr< T > &src, cudaStream_t stream)
Definition: copyAsync.h:20
SiPixelClustersCUDA()=default
cms::cuda::device::unique_ptr< uint32_t[]> clusInModule_d
cms::cuda::device::unique_ptr< uint32_t[]> clusModuleStart_d
device::impl::make_device_unique_selector< T >::non_array make_device_unique(cudaStream_t stream)