Skip to content

Commit d7b5712

Browse files
chore: Fix compilation error in test constructor (#49)
1 parent def0db5 commit d7b5712

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

libwmd/include/galois/wmd/WMDPartitioner.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,7 @@ class WMDGraph : public DistLocalGraph<NodeTy, EdgeTy> {
585585
.emplace_back(globalID);
586586
}
587587

588-
base_DistGraph::graph.allocateFrom(base_DistGraph::numNodes,
589-
base_DistGraph::numEdges);
588+
base_DistGraph::initGraph(base_DistGraph::numNodes);
590589
uint64_t edgeCount = 0;
591590
for (uint64_t node = 0; node < base_DistGraph::numNodes; node++) {
592591
base_DistGraph::getData(node) = localNodes[node];
@@ -604,10 +603,9 @@ class WMDGraph : public DistLocalGraph<NodeTy, EdgeTy> {
604603
newEdgeData.emplace_back(edge.data);
605604
}
606605
edgeCount += numEdges;
607-
base_DistGraph::graph.addEdgesUnSort(true, node, localDsts.data(),
608-
newEdgeData.data(), numEdges, false);
606+
base_DistGraph::graph->addEdges(node, localDsts, newEdgeData);
609607
}
610-
base_DistGraph::graph.getEdgePrefixSum();
608+
base_DistGraph::graph->getEdgePrefixSum();
611609

612610
base_DistGraph::determineThreadRanges();
613611
base_DistGraph::determineThreadRangesMaster();

0 commit comments

Comments
 (0)