Skip to content

Commit

Permalink
disable locking in LCCSR
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerzinn committed Apr 4, 2024
1 parent 2d9a406 commit 5b8b694
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/scea/graph/csr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ namespace scea::graph {

class LC_CSR : public MutableGraph {
private:
using GraphTy = galois::graphs::LC_CSR_64_Graph<void, void>;
using GraphTy =
galois::graphs::LC_CSR_64_Graph<void, void>::with_no_lockable<true>::type;
std::vector<std::vector<uint64_t>> m_adj;
std::unique_ptr<GraphTy> m_graph;
std::atomic<size_t> num_edges = ATOMIC_VAR_INIT(0);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 5b8b694

Please sign in to comment.