Skip to content

Commit

Permalink
Fix uninitialized var injecting a random value
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Zuzek committed Feb 11, 2022
1 parent 8897577 commit d460b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph/impl/KokkosGraph_Distance2MIS_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d460b59

Please sign in to comment.