Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::CpuVector< var_t > Class Template Reference

#include <acts/blob/sPHENIX/Plugins/Cuda/include/Acts/Plugins/Cuda/Utilities/CpuVector.hpp>

Public Member Functions

 CpuVector ()=delete
 
 CpuVector (size_t size, bool pinned=false)
 
 CpuVector (size_t size, CudaVector< var_t > *cuVec, bool pinned=false)
 
 ~CpuVector ()
 
var_t * get (size_t offset=0)
 
void set (size_t offset, var_t val)
 
void copyD2H (var_t *devPtr, size_t len, size_t offset)
 
void copyD2H (var_t *devPtr, size_t len, size_t offset, cudaStream_t *stream)
 
void zeros ()
 

Private Attributes

var_t * m_hostPtr = nullptr
 
size_t m_size
 
bool m_pinned
 

Detailed Description

template<typename var_t>
class Acts::CpuVector< var_t >

Definition at line 21 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 21 of file CpuVector.hpp

Constructor & Destructor Documentation

template<typename var_t>
Acts::CpuVector< var_t >::CpuVector ( )
delete
template<typename var_t>
Acts::CpuVector< var_t >::CpuVector ( size_t  size,
bool  pinned = false 
)
inline

Definition at line 24 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 24 of file CpuVector.hpp

References Acts::CpuVector< var_t >::m_hostPtr, Acts::CpuVector< var_t >::m_pinned, Acts::CpuVector< var_t >::m_size, and size.

template<typename var_t>
Acts::CpuVector< var_t >::CpuVector ( size_t  size,
CudaVector< var_t > *  cuVec,
bool  pinned = false 
)
inline

Definition at line 34 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 34 of file CpuVector.hpp

References Acts::CpuVector< var_t >::m_hostPtr, Acts::CpuVector< var_t >::m_pinned, Acts::CpuVector< var_t >::m_size, and size.

template<typename var_t>
Acts::CpuVector< var_t >::~CpuVector ( )
inline

Definition at line 46 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 46 of file CpuVector.hpp

References Acts::CpuVector< var_t >::m_hostPtr, and Acts::CpuVector< var_t >::m_pinned.

Member Function Documentation

template<typename var_t>
void Acts::CpuVector< var_t >::copyD2H ( var_t *  devPtr,
size_t  len,
size_t  offset 
)
inline

Definition at line 58 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 58 of file CpuVector.hpp

References Acts::CpuVector< var_t >::m_hostPtr.

template<typename var_t>
void Acts::CpuVector< var_t >::copyD2H ( var_t *  devPtr,
size_t  len,
size_t  offset,
cudaStream_t *  stream 
)
inline

Definition at line 63 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 63 of file CpuVector.hpp

References Acts::CpuVector< var_t >::m_hostPtr.

template<typename var_t>
var_t* Acts::CpuVector< var_t >::get ( size_t  offset = 0)
inline

Definition at line 54 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 54 of file CpuVector.hpp

References Acts::CpuVector< var_t >::m_hostPtr, and offset.

Referenced by Acts::SeedFinder< external_spacepoint_t, Acts::Cuda >::createSeedsForGroup().

+ Here is the caller graph for this function:

template<typename var_t>
void Acts::CpuVector< var_t >::set ( size_t  offset,
var_t  val 
)
inline

Definition at line 56 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 56 of file CpuVector.hpp

References Acts::CpuVector< var_t >::m_hostPtr, and offset.

template<typename var_t>
void Acts::CpuVector< var_t >::zeros ( )
inline

Definition at line 68 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 68 of file CpuVector.hpp

References Acts::CpuVector< var_t >::m_hostPtr, and Acts::CpuVector< var_t >::m_size.

Referenced by Acts::SeedFinder< external_spacepoint_t, Acts::Cuda >::createSeedsForGroup().

+ Here is the caller graph for this function:

Member Data Documentation

template<typename var_t>
var_t* Acts::CpuVector< var_t >::m_hostPtr = nullptr
private
template<typename var_t>
bool Acts::CpuVector< var_t >::m_pinned
private

Definition at line 73 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 73 of file CpuVector.hpp

Referenced by Acts::CpuVector< var_t >::CpuVector(), and Acts::CpuVector< var_t >::~CpuVector().

template<typename var_t>
size_t Acts::CpuVector< var_t >::m_size
private

Definition at line 72 of file CpuVector.hpp.

View newest version in sPHENIX GitHub at line 72 of file CpuVector.hpp

Referenced by Acts::CpuVector< var_t >::CpuVector(), and Acts::CpuVector< var_t >::zeros().


The documentation for this class was generated from the following file: