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

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

Public Member Functions

 CpuMatrix ()=delete
 
 CpuMatrix (size_t nRows, size_t nCols, bool pinned=false)
 
 CpuMatrix (size_t nRows, size_t nCols, CudaMatrix< var_t > *cuMat, bool pinned=false)
 
 ~CpuMatrix ()
 
var_t * get (size_t row=0, size_t col=0)
 
void set (size_t row, size_t col, 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 Member Functions

void m_setSize (size_t row, size_t col)
 

Private Attributes

var_t * m_hostPtr = nullptr
 
size_t m_nCols
 
size_t m_nRows
 
size_t m_size
 
bool m_pinned
 

Detailed Description

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

Definition at line 21 of file CpuMatrix.hpp.

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

Constructor & Destructor Documentation

template<typename var_t>
Acts::CpuMatrix< var_t >::CpuMatrix ( )
delete
template<typename var_t>
Acts::CpuMatrix< var_t >::CpuMatrix ( size_t  nRows,
size_t  nCols,
bool  pinned = false 
)
inline

Definition at line 24 of file CpuMatrix.hpp.

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

References Acts::CpuMatrix< var_t >::m_hostPtr, Acts::CpuMatrix< var_t >::m_pinned, Acts::CpuMatrix< var_t >::m_setSize(), and Acts::CpuMatrix< var_t >::m_size.

+ Here is the call graph for this function:

template<typename var_t>
Acts::CpuMatrix< var_t >::CpuMatrix ( size_t  nRows,
size_t  nCols,
CudaMatrix< var_t > *  cuMat,
bool  pinned = false 
)
inline

Definition at line 34 of file CpuMatrix.hpp.

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

References Acts::CpuMatrix< var_t >::m_hostPtr, Acts::CpuMatrix< var_t >::m_nCols, Acts::CpuMatrix< var_t >::m_nRows, Acts::CpuMatrix< var_t >::m_pinned, Acts::CpuMatrix< var_t >::m_setSize(), and Acts::CpuMatrix< var_t >::m_size.

+ Here is the call graph for this function:

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

Definition at line 47 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 47 of file CpuMatrix.hpp

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

Member Function Documentation

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

Definition at line 65 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 65 of file CpuMatrix.hpp

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

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

Definition at line 70 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 70 of file CpuMatrix.hpp

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

template<typename var_t>
var_t* Acts::CpuMatrix< var_t >::get ( size_t  row = 0,
size_t  col = 0 
)
inline

Definition at line 55 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 55 of file CpuMatrix.hpp

References col, Acts::CpuMatrix< var_t >::m_hostPtr, Acts::CpuMatrix< var_t >::m_nRows, and offset.

template<typename var_t>
void Acts::CpuMatrix< var_t >::m_setSize ( size_t  row,
size_t  col 
)
inlineprivate

Definition at line 84 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 84 of file CpuMatrix.hpp

References col, Acts::CpuMatrix< var_t >::m_nCols, Acts::CpuMatrix< var_t >::m_nRows, and Acts::CpuMatrix< var_t >::m_size.

Referenced by Acts::CpuMatrix< var_t >::CpuMatrix().

+ Here is the caller graph for this function:

template<typename var_t>
void Acts::CpuMatrix< var_t >::set ( size_t  row,
size_t  col,
var_t  val 
)
inline

Definition at line 60 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 60 of file CpuMatrix.hpp

References col, Acts::CpuMatrix< var_t >::m_hostPtr, Acts::CpuMatrix< var_t >::m_nRows, and offset.

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

Definition at line 75 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 75 of file CpuMatrix.hpp

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

Member Data Documentation

template<typename var_t>
var_t* Acts::CpuMatrix< var_t >::m_hostPtr = nullptr
private
template<typename var_t>
size_t Acts::CpuMatrix< var_t >::m_nCols
private

Definition at line 79 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 79 of file CpuMatrix.hpp

Referenced by Acts::CpuMatrix< var_t >::CpuMatrix(), and Acts::CpuMatrix< var_t >::m_setSize().

template<typename var_t>
size_t Acts::CpuMatrix< var_t >::m_nRows
private

Definition at line 80 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 80 of file CpuMatrix.hpp

Referenced by Acts::CpuMatrix< var_t >::CpuMatrix(), Acts::CpuMatrix< var_t >::get(), Acts::CpuMatrix< var_t >::m_setSize(), and Acts::CpuMatrix< var_t >::set().

template<typename var_t>
bool Acts::CpuMatrix< var_t >::m_pinned
private

Definition at line 82 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 82 of file CpuMatrix.hpp

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

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

Definition at line 81 of file CpuMatrix.hpp.

View newest version in sPHENIX GitHub at line 81 of file CpuMatrix.hpp

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


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