40 OpenclMatrix(cl::Context *context,
int Nb_,
int Mb_,
int nnzbs_,
unsigned int block_size_)
44 block_size(block_size_)
46 nnzValues = cl::Buffer(*context, CL_MEM_READ_WRITE,
sizeof(
double) * block_size * block_size * nnzbs);
47 colIndices = cl::Buffer(*context, CL_MEM_READ_WRITE,
sizeof(
int) * nnzbs);
48 rowPointers = cl::Buffer(*context, CL_MEM_READ_WRITE,
sizeof(
int) * (Nb + 1));
51 void upload(cl::CommandQueue *queue,
double *vals,
int *cols,
int *rows);
52 void upload(cl::CommandQueue *queue,
Matrix *matrix);
56 cl::Buffer colIndices;
57 cl::Buffer rowPointers;
60 unsigned int block_size;