Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeageun committed Apr 3, 2024
1 parent 36dc992 commit 5cc1327
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/pando-lib-galois/graphs/dist_local_csr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ class DistLocalCSR {
VertexIt& operator++() {
auto currNode = static_cast<std::uint64_t>(galois::localityOf(m_pos).node.id);
pointer ptr = m_pos + 1;
CSR csrCurr = arrayOfCSRs.get(currNode);
CSR csrCurr = arrayOfCSRs[currNode];
if (csrCurr.vertexEdgeOffsets.end() - 1 > ptr ||
(int16_t)currNode == pando::getPlaceDims().node.id - 1) {
m_pos = ptr;
} else {
csrCurr = arrayOfCSRs.get(currNode + 1);
csrCurr = arrayOfCSRs[currNode + 1];
this->m_pos = csrCurr.vertexEdgeOffsets.begin();
}
return *this;
Expand Down Expand Up @@ -403,7 +403,7 @@ class DistLocalCSR {
std::uint64_t physicalHost = fmap(virtualToPhysicalMap.getLocalRef(), get, virtualHostID);
auto [ret, found] = fmap(getLocalCSR(), relaxedgetTopologyID, tid);
if (!found) {
return fmap(arrayOfCSRs.get(physicalHost), getTopologyID, tid);
return fmap(arrayOfCSRs[physicalHost], getTopologyID, tid);
} else {
return ret;
}
Expand Down Expand Up @@ -1148,7 +1148,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 5cc1327

Please sign in to comment.