From 41df91f3e2e08c0b6e2b30d669db932abfd7c9d4 Mon Sep 17 00:00:00 2001 From: Meyer Zinn Date: Wed, 17 Apr 2024 16:25:21 +0000 Subject: [PATCH] fixup! compact into a CSR --- .../include/galois/graphs/LS_LC_CSR_Graph.h | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h b/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h index 35f50fcf1..a339fd80b 100644 --- a/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h +++ b/libgalois/include/galois/graphs/LS_LC_CSR_Graph.h @@ -408,25 +408,8 @@ class LS_LC_CSR_Graph : private boost::noncopyable { Compaction policy utilities. */ - // Returns an estimated memory usage in bytes for the entire data structure. - inline size_t getMemoryUsageBytes() { - size_t estimate = m_vertices.size() * sizeof(VertexMetadata); - if constexpr (HasVertexData) { - estimate += m_vertices.size() * sizeof(VertexData); - } - m_edges_lock.lock(); - { - estimate += - (m_edges[0].size() + m_edges_tail.load(std::memory_order_relaxed)) * - sizeof(EdgeMetadata); - } - m_edges_lock.unlock(); - if constexpr (HasEdgeData) { - estimate += m_edge_data.size() * - (sizeof(EdgeData) + - sizeof(std::pair)); - } - return estimate; + inline size_t getCSRMemoryUsageBytes() { + return m_edges[0].size() * sizeof(EdgeMetadata); } // Returns the number of bytes used for the log.