forked from realstolz/polymer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (38 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ifdef LONG
INTT = -DLONG
endif
ifdef EDGELONG
INTE = -DEDGELONG
endif
#CILK = 1
# # no compare and swap!
# ifdef OPENMP
# PCC = g++
# PCFLAGS = -fopenmp -mcx16 -O3 -DOPENMP $(INTT) $(INTE)
ifdef CILK
PCC = g++
#-cilk
PCFLAGS = -fcilkplus -lcilkrts -O2 -DCILK $(INTT) $(INTE)
PLFLAGS = -fcilkplus -lcilkrts
else ifdef MKLROOT
PCC = icpc
PCFLAGS = -O3 -DCILKP $(INTT) $(INTE)
else
PCC = g++
PCFLAGS = -O2 $(INTT) $(INTE)
endif
#PCFLAGS = -fcilkplus -lcilkrts -O2 -DCILK $(INTT) $(INTE)
#PLFLAGS = -fcilkplus -lcilkrts
COMMON= ligra.h polymer.h polymer-wgh.h graph.h utils.h IO.h parallel.h gettime.h quickSort.h
ALL= DegreeCount ConvertToBinary #PartitionGraphToEdgeList
MYAPPS= numa-BP numa-PageRank numa-PageRank-bin numa-PageRank-pull numa-PageRank-write numa-PageRankDelta numa-Components numa-BFS numa-BFS-async-pipe numa-SPMV numa-BellmanFord ConvertToJSON ConvertTmp
MYHEADER= ligra-rewrite.h ligra-numa.h
LIBS_I_NEED= -pthread -lnuma
all: $(ALL) $(MYAPPS)
debug: PCFLAGS = -fcilkplus -lcilkrts -O0 -g -DCILK $(INTT) $(INTE)
debug: all
% : %.C $(COMMON)
$(PCC) $(PCFLAGS) -o $@ $< $(LIBS_I_NEED)
.PHONY : clean
clean :
rm -f *.o $(ALL) $(MYAPPS)