diff --git a/cpp/include/raft/util/reduction.cuh b/cpp/include/raft/util/reduction.cuh index c0d3da7609..504f35fa0f 100644 --- a/cpp/include/raft/util/reduction.cuh +++ b/cpp/include/raft/util/reduction.cuh @@ -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); }