From 5b8b69491fe7fe23142beaebb0beb85991162186 Mon Sep 17 00:00:00 2001 From: Meyer Zinn Date: Thu, 4 Apr 2024 17:41:41 +0000 Subject: [PATCH] disable locking in LCCSR --- include/scea/graph/csr.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/scea/graph/csr.hpp b/include/scea/graph/csr.hpp index a6a33db..650ddbc 100644 --- a/include/scea/graph/csr.hpp +++ b/include/scea/graph/csr.hpp @@ -15,7 +15,8 @@ namespace scea::graph { class LC_CSR : public MutableGraph { private: - using GraphTy = galois::graphs::LC_CSR_64_Graph; + using GraphTy = + galois::graphs::LC_CSR_64_Graph::with_no_lockable::type; std::vector> m_adj; std::unique_ptr m_graph; std::atomic num_edges = ATOMIC_VAR_INIT(0); @@ -47,6 +48,7 @@ class LC_CSR : public MutableGraph { } void sort_edges(uint64_t src) override { m_graph->sortEdgesByDst(src); } + bool find_edge_sorted(uint64_t src, uint64_t dst) override { return m_graph->findEdgeSortedByDst(src, dst) != m_graph->edge_end(src); }