20#ifndef OPM_ROCMMATRIX_HEADER_INCLUDED
21#define OPM_ROCMMATRIX_HEADER_INCLUDED
23#include <hip/hip_runtime_api.h>
27template<
class Scalar>
class Matrix;
28template<
class Scalar>
class BlockedMatrix;
35 RocmMatrix(
int Nb_,
int Mb_,
int nnzbs_,
unsigned int block_size_);
56template <
typename Scalar>
Definition: BlockedMatrix.hpp:29
Definition: Matrix.hpp:34
This struct resembles a csr matrix.
Definition: rocsparseMatrix.hpp:32
int * colIndices
Definition: rocsparseMatrix.hpp:49
int nnzbs
Definition: rocsparseMatrix.hpp:52
int Nb
Definition: rocsparseMatrix.hpp:51
int * rowPointers
Definition: rocsparseMatrix.hpp:50
void upload(Matrix< Scalar > *matrix, hipStream_t stream)
Scalar * nnzValues
Definition: rocsparseMatrix.hpp:48
unsigned int block_size
Definition: rocsparseMatrix.hpp:53
int Mb
Definition: rocsparseMatrix.hpp:51
void upload(BlockedMatrix< Scalar > *matrix, hipStream_t stream)
void upload(Scalar *vals, int *cols, int *rows, hipStream_t stream)
RocmMatrix(int Nb_, int Mb_, int nnzbs_, unsigned int block_size_)
Definition: rocsparseMatrix.hpp:57
void upload(Scalar *vals, hipStream_t stream)
int size
Definition: rocsparseMatrix.hpp:69
Scalar * nnzValues
Definition: rocsparseMatrix.hpp:68
void upload(Matrix< Scalar > *matrix, hipStream_t stream)
Definition: amgclSolverBackend.hpp:44