From d460b59b59154a1bda6754c2375240f0ae46a7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Zuzek?= Date: Thu, 10 Feb 2022 20:38:12 +0100 Subject: [PATCH] Fix uninitialized var injecting a random value --- src/graph/impl/KokkosGraph_Distance2MIS_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph/impl/KokkosGraph_Distance2MIS_impl.hpp b/src/graph/impl/KokkosGraph_Distance2MIS_impl.hpp index 7886b8e175..1628b715a8 100644 --- a/src/graph/impl/KokkosGraph_Distance2MIS_impl.hpp +++ b/src/graph/impl/KokkosGraph_Distance2MIS_impl.hpp @@ -1079,7 +1079,7 @@ struct D2_MIS_Aggregation { // Now, filter out the candidate aggs which are big enough, and create those // aggregates. Using a scan for this assigns IDs deterministically (unlike // an atomic counter). - lno_t numNewAggs; + lno_t numNewAggs = 0; Kokkos::parallel_scan( range_pol(0, numCandRoots), ChoosePhase2AggsFunctor(numVerts, numAggs, m2, rowmap, entries, labels,