Skip to content

Commit

Permalink
Version 1.0 of GraphMat
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Jun 18, 2015
1 parent 01764f5 commit 646838e
Show file tree
Hide file tree
Showing 21 changed files with 4,371 additions and 0 deletions.
56 changes: 56 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
CXX=icpc
CXX_OPTIONS=-openmp -std=c++11 -I./src/


ifeq (${debug}, 1)
CXX_OPTIONS += -g
else
CXX_OPTIONS += -O3 -ipo
endif

CXX_OPTIONS += -xHost

ifeq (${timing}, 1)
CXX_OPTIONS += -D__TIMING
else
endif

SRCDIR=src
BINDIR=bin

SOURCES=$(SRCDIR)/PageRank.cpp $(SRCDIR)/Degree.cpp $(SRCDIR)/BFS.cpp $(SRCDIR)/SGD.cpp $(SRCDIR)/TriangleCounting.cpp $(SRCDIR)/SSSP.cpp $(SRCDIR)/Delta.cpp

DEPS=$(SRCDIR)/SPMV.cpp $(SRCDIR)/Graph.cpp $(SRCDIR)/GraphProgram.cpp $(SRCDIR)/SparseVector.cpp $(SRCDIR)/GraphMatRuntime.cpp

EXE=$(BINDIR)/PageRank $(BINDIR)/IncrementalPageRank $(BINDIR)/BFS $(BINDIR)/TriangleCounting $(BINDIR)/SGD $(BINDIR)/SSSP $(BINDIR)/DS


all: $(EXE) graph_converter


graph_converter: graph_utils/graph_convert.cpp
$(CXX) $(CXX_OPTIONS) -o $(BINDIR)/graph_converter graph_utils/graph_convert.cpp

$(BINDIR)/PageRank: $(DEPS) $(MULTINODEDEPS) $(SRCDIR)/PageRank.cpp $(SRCDIR)/Degree.cpp
$(CXX) $(CXX_OPTIONS) -o $(BINDIR)/PageRank $(SRCDIR)/PageRank.cpp

$(BINDIR)/IncrementalPageRank: $(DEPS) $(MULTINODEDEPS) $(SRCDIR)/IncrementalPageRank.cpp $(SRCDIR)/Degree.cpp
$(CXX) $(CXX_OPTIONS) -o $(BINDIR)/IncrementalPageRank $(SRCDIR)/IncrementalPageRank.cpp

$(BINDIR)/BFS: $(DEPS) $(SRCDIR)/BFS.cpp
$(CXX) $(CXX_OPTIONS) -o $(BINDIR)/BFS $(SRCDIR)/BFS.cpp

$(BINDIR)/SGD: $(DEPS) $(SRCDIR)/SGD.cpp
$(CXX) $(CXX_OPTIONS) -o $(BINDIR)/SGD $(SRCDIR)/SGD.cpp

$(BINDIR)/TriangleCounting: $(DEPS) $(SRCDIR)/TriangleCounting.cpp
$(CXX) $(CXX_OPTIONS) -o $(BINDIR)/TriangleCounting $(SRCDIR)/TriangleCounting.cpp

$(BINDIR)/SSSP: $(DEPS) $(MULTINODEDEPS) $(SRCDIR)/SSSP.cpp
$(CXX) $(CXX_OPTIONS) -o $(BINDIR)/SSSP $(SRCDIR)/SSSP.cpp

$(BINDIR)/DS: $(DEPS) $(SRCDIR)/Delta.cpp
$(CXX) $(CXX_OPTIONS) -o $(BINDIR)/DS $(SRCDIR)/Delta.cpp

clean:
rm $(EXE) bin/graph_converter
Binary file added data/2_10_upper_triangle.bin.mtx
Binary file not shown.
Binary file added data/ratings7.bin.mtx
Binary file not shown.
Binary file added data/test.bin.mtx
Binary file not shown.
Loading

0 comments on commit 646838e

Please sign in to comment.