41 OpenclMatrix(cl::Context *context,
int Nb_,
int Mb_,
int nnzbs_,
unsigned int block_size_)
45 block_size(block_size_)
47 nnzValues = cl::Buffer(*context, CL_MEM_READ_WRITE,
48 sizeof(Scalar) * block_size * block_size * nnzbs);
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);
58 cl::Buffer colIndices;
59 cl::Buffer rowPointers;
62 unsigned int block_size;