Skip to content

Commit

Permalink
chore: Redo changes lost in force push
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkenney9801 committed Apr 4, 2024
1 parent 9d2b005 commit cc9f1a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/pando-lib-galois/graphs/dist_local_csr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,15 +816,15 @@ class DistLocalCSR {
}
currentCSR.vertexEdgeOffsets[vertex] = Vertex{&currentCSR.edgeDestinations[currLocalEdge]};

arrayOfCSRs.get(host) = currentCSR;
arrayOfCSRs[host] = currentCSR;
edgesStart = edgesEnd;
}
edgeCounts.deinitialize();
virtualToPhysicalMap = PANDO_EXPECT_RETURN(galois::copyToAllHosts(std::move(v2PM)));

edgesStart = 0;
for (uint64_t host = 0; host < hosts; host++) {
CSR currentCSR = arrayOfCSRs.get(host);
CSR currentCSR = arrayOfCSRs[host];

uint64_t lastLocalVertexIndex = verticesPerHost * (host + 1) - 1;
if (lastLocalVertexIndex >= numVertices) {
Expand All @@ -846,7 +846,7 @@ class DistLocalCSR {
currEdge = edges[edgesStart + currLocalEdge + 1];
}
}
arrayOfCSRs.get(host) = currentCSR;
arrayOfCSRs[host] = currentCSR;

edgesStart += currLocalEdge;
}
Expand Down Expand Up @@ -925,7 +925,7 @@ class DistLocalCSR {
galois::onEach(
state2, +[](InitializeEdgeState& state, uint64_t thread, uint64_t) {
uint64_t host = static_cast<std::uint64_t>(pando::getCurrentNode().id);
CSR currentCSR = state.dlcsr.arrayOfCSRs.get(host);
CSR currentCSR = state.dlcsr.arrayOfCSRs[host];

uint64_t hostOffset;
PANDO_CHECK(state.edges.currentHostIndexOffset(hostOffset));
Expand Down Expand Up @@ -1067,7 +1067,7 @@ class DistLocalCSR {
*/
pando::GlobalRef<CSR> getLocalCSR() {
std::uint64_t nodeIdx = static_cast<std::uint64_t>(pando::getCurrentPlace().node.id);
return arrayOfCSRs.get(nodeIdx);
return arrayOfCSRs[nodeIdx];
}

private:
Expand Down

0 comments on commit cc9f1a6

Please sign in to comment.