Skip to content

Commit

Permalink
Fix cusp dia kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
bigno78 committed Aug 13, 2022
1 parent 9b7a360 commit 6847393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cusp/system/cuda/detail/multiply/dia_spmv.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spmv_dia_kernel(const int num_rows,
// process chunk
for(IndexType row = thread_id; row < num_rows; row += grid_size)
{
ValueType sum = (base == 0) ? initialize(y[row]) : ValueType(0);
ValueType sum = (base == 0) ? initialize(y[row]) : y[row];

// index into values array
IndexType idx = row + pitch * base;
Expand Down

0 comments on commit 6847393

Please sign in to comment.