From 3ea21146fd3290d279963aa489f09ab473e39c6e Mon Sep 17 00:00:00 2001 From: akifcorduk Date: Mon, 3 Jun 2024 04:29:47 -0700 Subject: [PATCH] default init instead of zero init --- cpp/include/raft/util/reduction.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }