From 857c3265d8014ed19f1d2d2b0eca3e327b76eecb Mon Sep 17 00:00:00 2001 From: yuhao-su <1464563510@qq.com> Date: Wed, 25 Dec 2019 21:18:10 +0800 Subject: [PATCH 1/2] fix a bug in virtual_graph.cpp --- shared/virtual_graph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shared/virtual_graph.cpp b/shared/virtual_graph.cpp index 7e3cc1a..aee8e68 100644 --- a/shared/virtual_graph.cpp +++ b/shared/virtual_graph.cpp @@ -65,6 +65,7 @@ void VirtualGraph::MakeGraph() } outDegreeCounter = new uint[graph->num_nodes]; + memset(outDegreeCounter, 0, sizeof(uint) * graph->num_nodes); for(int i=0; inum_edges; i++) { @@ -133,6 +134,7 @@ void VirtualGraph::MakeUGraph() } outDegreeCounter = new uint[graph->num_nodes]; + memset(outDegreeCounter, 0, sizeof(uint) * graph->num_nodes); for(int i=0; inum_edges; i++) { From aea9ecdecd58b9f5140195e84a87a56dda7f9823 Mon Sep 17 00:00:00 2001 From: yuhao-su <1464563510@qq.com> Date: Wed, 25 Dec 2019 21:18:56 +0800 Subject: [PATCH 2/2] fix a bug in makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 60ac119..51b52eb 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ NFLAGS=-arch=sm_32 SHARED=shared TIGR=tigr -all: make1 make2 sssp bfs cc pr sswp +all: make1 make2 sssp bfs cc pr sswp bc make1: make -C $(SHARED)