Open Cl.I just need to convert the code to using two work items in the for loop .Currentlly it uses one
- by user1660282
spmv_csr_scalar_kernel(const int num_rows ,
const int * ptr ,
const int * indices ,
const float * data ,
const float * x,
float * y)
{
int row = get_global_id(0);
if(row < num_rows)
{
float dot = 0;
int row_start = ptr[row];
int row_end = ptr[row+1];
for (int jj = row_start; jj < row_end; jj++)
{ dot += data[jj] *…