CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
SiPixelClustersCUDA Class Reference

#include <SiPixelClustersCUDA.h>

Classes

class  DeviceConstView
 

Public Member Functions

uint32_t * clusInModule ()
 
const uint32_t * clusInModule () const
 
uint32_t * clusModuleStart ()
 
const uint32_t * clusModuleStart () const
 
uint32_t * moduleId ()
 
const uint32_t * moduleId () const
 
uint32_t * moduleStart ()
 
const uint32_t * moduleStart () const
 
uint32_t nClusters () const
 
SiPixelClustersCUDAoperator= (const SiPixelClustersCUDA &)=delete
 
SiPixelClustersCUDAoperator= (SiPixelClustersCUDA &&)=default
 
void setNClusters (uint32_t nClusters)
 
 SiPixelClustersCUDA ()=default
 
 SiPixelClustersCUDA (const SiPixelClustersCUDA &)=delete
 
 SiPixelClustersCUDA (SiPixelClustersCUDA &&)=default
 
 SiPixelClustersCUDA (size_t maxModules, cudaStream_t stream)
 
DeviceConstViewview () const
 
 ~SiPixelClustersCUDA ()=default
 

Private Attributes

cms::cuda::device::unique_ptr< uint32_t[]> clusInModule_d
 
cms::cuda::device::unique_ptr< uint32_t[]> clusModuleStart_d
 
cms::cuda::device::unique_ptr< uint32_t[]> moduleId_d
 
cms::cuda::device::unique_ptr< uint32_t[]> moduleStart_d
 
uint32_t nClusters_h = 0
 
cms::cuda::device::unique_ptr< DeviceConstViewview_d
 

Detailed Description

Definition at line 10 of file SiPixelClustersCUDA.h.

Constructor & Destructor Documentation

◆ SiPixelClustersCUDA() [1/4]

SiPixelClustersCUDA::SiPixelClustersCUDA ( )
default

◆ SiPixelClustersCUDA() [2/4]

SiPixelClustersCUDA::SiPixelClustersCUDA ( size_t  maxModules,
cudaStream_t  stream 
)
explicit

◆ ~SiPixelClustersCUDA()

SiPixelClustersCUDA::~SiPixelClustersCUDA ( )
default

◆ SiPixelClustersCUDA() [3/4]

SiPixelClustersCUDA::SiPixelClustersCUDA ( const SiPixelClustersCUDA )
delete

◆ SiPixelClustersCUDA() [4/4]

SiPixelClustersCUDA::SiPixelClustersCUDA ( SiPixelClustersCUDA &&  )
default

Member Function Documentation

◆ clusInModule() [1/2]

uint32_t* SiPixelClustersCUDA::clusInModule ( )
inline

Definition at line 26 of file SiPixelClustersCUDA.h.

26 { return clusInModule_d.get(); }

References clusInModule_d.

◆ clusInModule() [2/2]

const uint32_t* SiPixelClustersCUDA::clusInModule ( ) const
inline

Definition at line 31 of file SiPixelClustersCUDA.h.

31 { return clusInModule_d.get(); }

References clusInModule_d.

◆ clusModuleStart() [1/2]

uint32_t* SiPixelClustersCUDA::clusModuleStart ( )
inline

Definition at line 28 of file SiPixelClustersCUDA.h.

28 { return clusModuleStart_d.get(); }

References clusModuleStart_d.

◆ clusModuleStart() [2/2]

const uint32_t* SiPixelClustersCUDA::clusModuleStart ( ) const
inline

Definition at line 33 of file SiPixelClustersCUDA.h.

33 { return clusModuleStart_d.get(); }

References clusModuleStart_d.

◆ moduleId() [1/2]

uint32_t* SiPixelClustersCUDA::moduleId ( )
inline

Definition at line 27 of file SiPixelClustersCUDA.h.

27 { return moduleId_d.get(); }

References moduleId_d.

◆ moduleId() [2/2]

const uint32_t* SiPixelClustersCUDA::moduleId ( ) const
inline

Definition at line 32 of file SiPixelClustersCUDA.h.

32 { return moduleId_d.get(); }

References moduleId_d.

◆ moduleStart() [1/2]

uint32_t* SiPixelClustersCUDA::moduleStart ( )
inline

Definition at line 25 of file SiPixelClustersCUDA.h.

25 { return moduleStart_d.get(); }

References moduleStart_d.

◆ moduleStart() [2/2]

const uint32_t* SiPixelClustersCUDA::moduleStart ( ) const
inline

Definition at line 30 of file SiPixelClustersCUDA.h.

30 { return moduleStart_d.get(); }

References moduleStart_d.

◆ nClusters()

uint32_t SiPixelClustersCUDA::nClusters ( ) const
inline

Definition at line 23 of file SiPixelClustersCUDA.h.

23 { return nClusters_h; }

References nClusters_h.

Referenced by setNClusters().

◆ operator=() [1/2]

SiPixelClustersCUDA& SiPixelClustersCUDA::operator= ( const SiPixelClustersCUDA )
delete

◆ operator=() [2/2]

SiPixelClustersCUDA& SiPixelClustersCUDA::operator= ( SiPixelClustersCUDA &&  )
default

◆ setNClusters()

void SiPixelClustersCUDA::setNClusters ( uint32_t  nClusters)
inline

◆ view()

DeviceConstView* SiPixelClustersCUDA::view ( ) const
inline

Definition at line 48 of file SiPixelClustersCUDA.h.

48 { return view_d.get(); }

References view_d.

Referenced by SiPixelClustersCUDA().

Member Data Documentation

◆ clusInModule_d

cms::cuda::device::unique_ptr<uint32_t[]> SiPixelClustersCUDA::clusInModule_d
private

Definition at line 52 of file SiPixelClustersCUDA.h.

Referenced by clusInModule(), and SiPixelClustersCUDA().

◆ clusModuleStart_d

cms::cuda::device::unique_ptr<uint32_t[]> SiPixelClustersCUDA::clusModuleStart_d
private

Definition at line 56 of file SiPixelClustersCUDA.h.

Referenced by clusModuleStart(), and SiPixelClustersCUDA().

◆ moduleId_d

cms::cuda::device::unique_ptr<uint32_t[]> SiPixelClustersCUDA::moduleId_d
private

Definition at line 53 of file SiPixelClustersCUDA.h.

Referenced by moduleId(), and SiPixelClustersCUDA().

◆ moduleStart_d

cms::cuda::device::unique_ptr<uint32_t[]> SiPixelClustersCUDA::moduleStart_d
private

Definition at line 51 of file SiPixelClustersCUDA.h.

Referenced by moduleStart(), and SiPixelClustersCUDA().

◆ nClusters_h

uint32_t SiPixelClustersCUDA::nClusters_h = 0
private

Definition at line 60 of file SiPixelClustersCUDA.h.

Referenced by nClusters(), and setNClusters().

◆ view_d

cms::cuda::device::unique_ptr<DeviceConstView> SiPixelClustersCUDA::view_d
private

Definition at line 58 of file SiPixelClustersCUDA.h.

Referenced by SiPixelClustersCUDA(), and view().

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
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
SiPixelClustersCUDA::view_d
cms::cuda::device::unique_ptr< DeviceConstView > view_d
Definition: SiPixelClustersCUDA.h:58
SiPixelClustersCUDA::nClusters_h
uint32_t nClusters_h
Definition: SiPixelClustersCUDA.h:60
SiPixelClustersCUDA::nClusters
uint32_t nClusters() const
Definition: SiPixelClustersCUDA.h:23
SiPixelClustersCUDA::DeviceConstView::moduleStart_
const uint32_t * moduleStart_
Definition: SiPixelClustersCUDA.h:42
cms::cuda::copyAsync
void copyAsync(device::unique_ptr< T > &dst, const host::unique_ptr< T > &src, cudaStream_t stream)
Definition: copyAsync.h:20