Opm::Accelerator::RocmMatrix< Scalar > Class Template Reference

This struct resembles a csr matrix. More...

#include <rocsparseMatrix.hpp>

Public Member Functions

 RocmMatrix (int Nb_, int Mb_, int nnzbs_, unsigned int block_size_)
 
void upload (Scalar *vals, int *cols, int *rows, hipStream_t stream)
 
void upload (Matrix< Scalar > *matrix, hipStream_t stream)
 
void upload (BlockedMatrix< Scalar > *matrix, hipStream_t stream)
 

Public Attributes

Scalar * nnzValues
 
int * colIndices
 
int * rowPointers
 
int Nb
 
int Mb
 
int nnzbs
 
unsigned int block_size
 

Detailed Description

template<class Scalar>
class Opm::Accelerator::RocmMatrix< Scalar >

This struct resembles a csr matrix.

Constructor & Destructor Documentation

◆ RocmMatrix()

template<class Scalar >
Opm::Accelerator::RocmMatrix< Scalar >::RocmMatrix ( int  Nb_,
int  Mb_,
int  nnzbs_,
unsigned int  block_size_ 
)

Member Function Documentation

◆ upload() [1/3]

template<class Scalar >
void Opm::Accelerator::RocmMatrix< Scalar >::upload ( BlockedMatrix< Scalar > *  matrix,
hipStream_t  stream 
)

◆ upload() [2/3]

template<class Scalar >
void Opm::Accelerator::RocmMatrix< Scalar >::upload ( Matrix< Scalar > *  matrix,
hipStream_t  stream 
)

◆ upload() [3/3]

template<class Scalar >
void Opm::Accelerator::RocmMatrix< Scalar >::upload ( Scalar *  vals,
int *  cols,
int *  rows,
hipStream_t  stream 
)

Member Data Documentation

◆ block_size

template<class Scalar >
unsigned int Opm::Accelerator::RocmMatrix< Scalar >::block_size

◆ colIndices

template<class Scalar >
int* Opm::Accelerator::RocmMatrix< Scalar >::colIndices

◆ Mb

template<class Scalar >
int Opm::Accelerator::RocmMatrix< Scalar >::Mb

◆ Nb

template<class Scalar >
int Opm::Accelerator::RocmMatrix< Scalar >::Nb

◆ nnzbs

template<class Scalar >
int Opm::Accelerator::RocmMatrix< Scalar >::nnzbs

◆ nnzValues

template<class Scalar >
Scalar* Opm::Accelerator::RocmMatrix< Scalar >::nnzValues

◆ rowPointers

template<class Scalar >
int* Opm::Accelerator::RocmMatrix< Scalar >::rowPointers

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