CMS 3D CMS Logo

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

Public Member Functions

std::unique_ptr< SiStripClustersCUDAHostgetResults ()
 
void makeAsync (const SiStripClustersCUDADevice &clusters_d, cudaStream_t stream)
 
 SiStripSOAtoHost ()=default
 

Private Attributes

std::unique_ptr< SiStripClustersCUDAHosthostView_
 

Detailed Description

Definition at line 21 of file SiStripClustersSOAtoHost.cc.

Constructor & Destructor Documentation

◆ SiStripSOAtoHost()

SiStripSOAtoHost::SiStripSOAtoHost ( )
default

Member Function Documentation

◆ getResults()

std::unique_ptr<SiStripClustersCUDAHost> SiStripSOAtoHost::getResults ( )
inline

Definition at line 27 of file SiStripClustersSOAtoHost.cc.

References hostView_, and eostools::move().

Referenced by SiStripClustersSOAtoHost::produce().

27 { return std::move(hostView_); }
std::unique_ptr< SiStripClustersCUDAHost > hostView_
def move(src, dest)
Definition: eostools.py:511

◆ makeAsync()

void SiStripSOAtoHost::makeAsync ( const SiStripClustersCUDADevice clusters_d,
cudaStream_t  stream 
)
inline

Definition at line 24 of file SiStripClustersSOAtoHost.cc.

References hostView_, and cms::cuda::stream.

Referenced by SiStripClustersSOAtoHost::acquire().

24  {
25  hostView_ = std::make_unique<SiStripClustersCUDAHost>(clusters_d, stream);
26  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
std::unique_ptr< SiStripClustersCUDAHost > hostView_

Member Data Documentation

◆ hostView_

std::unique_ptr<SiStripClustersCUDAHost> SiStripSOAtoHost::hostView_
private

Definition at line 30 of file SiStripClustersSOAtoHost.cc.

Referenced by getResults(), and makeAsync().