20#ifndef OPM_OPENCLMATRIX_HEADER_INCLUDED
21#define OPM_OPENCLMATRIX_HEADER_INCLUDED
32template<
class Scalar>
class Matrix;
33template<
class Scalar>
class BlockedMatrix;
41 OpenclMatrix(cl::Context *context,
int Nb_,
int Mb_,
int nnzbs_,
unsigned int block_size_)
47 nnzValues = cl::Buffer(*context, CL_MEM_READ_WRITE,
49 colIndices = cl::Buffer(*context, CL_MEM_READ_WRITE,
sizeof(
int) *
nnzbs);
50 rowPointers = cl::Buffer(*context, CL_MEM_READ_WRITE,
sizeof(
int) * (
Nb + 1));
53 void upload(cl::CommandQueue* queue, Scalar* vals,
int* cols,
int* rows);
Definition: BlockedMatrix.hpp:29
Definition: Matrix.hpp:34
Definition: OpenclMatrix.hpp:39
int nnzbs
Definition: OpenclMatrix.hpp:61
int Mb
Definition: OpenclMatrix.hpp:60
OpenclMatrix(cl::Context *context, int Nb_, int Mb_, int nnzbs_, unsigned int block_size_)
Definition: OpenclMatrix.hpp:41
cl::Buffer nnzValues
Definition: OpenclMatrix.hpp:57
cl::Buffer rowPointers
Definition: OpenclMatrix.hpp:59
unsigned int block_size
Definition: OpenclMatrix.hpp:62
void upload(cl::CommandQueue *queue, Scalar *vals, int *cols, int *rows)
cl::Buffer colIndices
Definition: OpenclMatrix.hpp:58
void upload(cl::CommandQueue *queue, BlockedMatrix< Scalar > *matrix)
int Nb
Definition: OpenclMatrix.hpp:60
void upload(cl::CommandQueue *queue, Matrix< Scalar > *matrix)
Definition: blackoilboundaryratevector.hh:37