From ff6d50d848b99052adbb1634653ffbcae8366fd6 Mon Sep 17 00:00:00 2001 From: rhdong Date: Sat, 7 Dec 2024 00:49:20 -0800 Subject: [PATCH] fix randomly fail --- cpp/include/raft/sparse/convert/detail/bitmap_to_csr.cuh | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/include/raft/sparse/convert/detail/bitmap_to_csr.cuh b/cpp/include/raft/sparse/convert/detail/bitmap_to_csr.cuh index 245ecc76e3..0f1b542246 100644 --- a/cpp/include/raft/sparse/convert/detail/bitmap_to_csr.cuh +++ b/cpp/include/raft/sparse/convert/detail/bitmap_to_csr.cuh @@ -230,6 +230,7 @@ RAFT_KERNEL __launch_bounds__(bitmap_to_csr_tpb) int l_bits = raft::detail::popc(l_bitmap); int l_sum_32b = 0; BlockScan(scan_storage).InclusiveSum(l_bits, l_sum_32b); + __syncthreads(); l_sum = l_sum_32b + g_sum - l_bits; #pragma unroll