Skip to content

Commit

Permalink
default init instead of zero init
Browse files Browse the repository at this point in the history
  • Loading branch information
akifcorduk committed Jun 3, 2024
1 parent be812e4 commit 3ea2114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/raft/util/reduction.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ DI T blockReduce(T val, char* smem, ReduceLambda reduce_op = raft::add_op{})
val = warpReduce(val, reduce_op);
if (lid == 0) sTemp[wid] = val;
__syncthreads();
val = lid < nWarps ? sTemp[lid] : T(0);
val = lid < nWarps ? sTemp[lid] : T();
return warpReduce(val, reduce_op);
}

Expand Down

0 comments on commit 3ea2114

Please sign in to comment.