Lines Matching refs:gid
192 PetscInt gid, row, start_slice, cid;
197 gid = gridDim.x * WARP_SIZE * BLOCKY * iter + blockIdx.x * BLOCKY * WARP_SIZE + threadIdx.y * WARP_SIZE + threadIdx.x;
198 if (gid < nrows) y[gid] = 0.0;
204 gid = cid * BLOCKY * WARP_SIZE + threadIdx.y * WARP_SIZE + threadIdx.x;
210 while (gid < totalentries && gid >= sliidx[slice_id + 1]) slice_id++;
213 if (row < nrows && gid < totalentries) t = aval[gid] * x[acolidx[gid]];
216 if (row < nrows && gid < totalentries && write) atomAdd(y[row], t);
220 if (row < nrows) t += aval[gid] * x[acolidx[gid]];
247 PetscInt gid, row, start_slice, cid;
252 gid = gridDim.x * WARP_SIZE * BLOCKY * iter + blockIdx.x * BLOCKY * WARP_SIZE + threadIdx.y * WARP_SIZE + threadIdx.x;
253 if (gid < nrows) z[gid] = y[gid];
259 gid = cid * BLOCKY * WARP_SIZE + threadIdx.y * WARP_SIZE + threadIdx.x;
265 while (gid < totalentries && gid >= sliidx[slice_id + 1]) slice_id++;
268 if (row < nrows && gid < totalentries) t = aval[gid] * x[acolidx[gid]];
271 if (row < nrows && gid < totalentries && write) atomAdd(z[row], t);
275 if (row < nrows) t += aval[gid] * x[acolidx[gid]];