From 4f7dd0e4e32d8fb58ff3f315e6ef31b4ee46398f Mon Sep 17 00:00:00 2001 From: Meyer Zinn Date: Wed, 17 Apr 2024 20:48:17 +0000 Subject: [PATCH] fix bug --- libgalois/include/galois/graphs/LS_LC_CSR_Graph.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h b/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h index a339fd80b..836e3bced 100644 --- a/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h +++ b/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h @@ -122,6 +122,7 @@ class LS_LC_CSR_Graph : private boost::noncopyable { // Compute the prefix sum using the two level method void computePrefixSum() { + resetPrefixSum(); constexpr uint64_t PARALLEL_PREFIX_SUM_VERTEX_THRESHOLD = static_cast(1) << 30; if (m_vertices.size() > PARALLEL_PREFIX_SUM_VERTEX_THRESHOLD) {