-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (62 loc) · 4.87 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
CC = g++
FLAGS = -O3 -fopenmp
DIR = src
DIROBJ = obj
SRC = $(DIR)/SourceGraph.cpp $(DIR)/TargetGraph.cpp $(DIR)/ReadInputFiles.cpp $(DIR)/GenericPartitioningAlgorithm.cpp $(DIR)/Comm.cpp $(DIR)/main.cpp $(DIR)/InferenceRate.cpp $(DIR)/CoarsenGraph.cpp
OBJ = $(SRC:.c=.o)
DIRWIF = write-input-file
PANCODE: $(DIR)/main.cpp $(OBJ)
g++ -c $(FLAGS) $(DIR)/SourceGraph.cpp -o $(DIROBJ)/SourceGraph.o
g++ -c $(FLAGS) $(DIR)/TargetGraph.cpp -o $(DIROBJ)/TargetGraph.o
g++ -c $(FLAGS) $(DIR)/ReadInputFiles.cpp -o $(DIROBJ)/ReadInputFiles.o
g++ -c $(FLAGS) $(DIR)/CoarsenGraph.cpp -o $(DIROBJ)/CoarsenGraph.o
g++ -c $(FLAGS) $(DIR)/GenericPartitioningAlgorithm.cpp -o $(DIROBJ)/GenericPartitioningAlgorithm.o
g++ -c $(FLAGS) $(DIR)/Comm.cpp -o $(DIROBJ)/Comm.o
g++ -c $(FLAGS) $(DIR)/InferenceRate.cpp -o $(DIROBJ)/InferenceRate.o
g++ -c $(FLAGS) $(DIR)/main.cpp -o $(DIROBJ)/main.o
g++ $(FLAGS) $(OBJ) -o PANCODE
PANCODE-debug:
g++ -c -O0 -g3 -fopenmp $(DIR)/SourceGraph.cpp -o $(DIROBJ)/SourceGraph.o
g++ -c -O0 -g3 -fopenmp $(DIR)/TargetGraph.cpp -o $(DIROBJ)/TargetGraph.o
g++ -c -O0 -g3 -fopenmp $(DIR)/ReadInputFiles.cpp -o $(DIROBJ)/ReadInputFiles.o
g++ -c -O0 -g3 -fopenmp $(DIR)/CoarsenGraph.cpp -o $(DIROBJ)/CoarsenGraph.o
g++ -c -O0 -g3 -fopenmp $(DIR)/GenericPartitioningAlgorithm.cpp -o $(DIROBJ)/GenericPartitioningAlgorithm.o
g++ -c -O0 -g3 -fopenmp $(DIR)/Comm.cpp -o $(DIROBJ)/Comm.o
g++ -c -O0 -g3 -fopenmp $(DIR)/InferenceRate.cpp -o $(DIROBJ)/InferenceRate.o
g++ -O0 -g3 -fopenmp $(OBJ) -o PANCODE-debug
#prog.x: main.o math.o log.o
# ld -dynamic-linker /lib64/ld-linux-x86-64.so.2 /usr/lib/x86_64-linux-O0 -gnu/crt1.o /usr/lib/x86_64-linux-O0 -gnu/crti.o -L/usr/lib64 main.o math.o log.o -lc /usr/lib/x86_64-linux-O0 -gnu/crtn.o -o prog.x
clean:
rm -f $(DIROBJ)/*.o PANCODE PANCODE-debug $(DIRWIF)/*.o writeInputFile*
writeInputFileCNN2D: $(DIRWIF)/sourceGraph.c $(DIRWIF)/write_input_file_CNN_2D.c
gcc -c $(DIRWIF)/sourceGraph.c -o $(DIRWIF)/sourceGraph.o
gcc -c $(DIRWIF)/write_input_file_CNN_2D.c -o $(DIRWIF)/write_input_file_CNN_2D.o
gcc $(DIRWIF)/sourceGraph.o $(DIRWIF)/write_input_file_CNN_2D.o -o writeInputFileCNN2D
writeInputFileCNN2DLeNetDirected: $(DIRWIF)/sourceGraph.c $(DIRWIF)/write_input_file_CNN_2D_LeNet_directed.c
gcc -c $(DIRWIF)/sourceGraph.c -o $(DIRWIF)/sourceGraph.o
gcc -c $(DIRWIF)/write_input_file_CNN_2D_LeNet_directed.c -o $(DIRWIF)/write_input_file_CNN_2D_LeNet_directed.o
gcc $(DIRWIF)/sourceGraph.o $(DIRWIF)/write_input_file_CNN_2D_LeNet_directed.o -o writeInputFileCNN2D_LeNet_directed
writeInputFileCNN2DAlexNet: $(DIRWIF)/sourceGraph.c $(DIRWIF)/write_input_file_CNN_2D_AlexNet.c
gcc -c $(DIRWIF)/sourceGraph.c -o $(DIRWIF)/sourceGraph.o
gcc -c $(DIRWIF)/write_input_file_CNN_2D_AlexNet.c -o $(DIRWIF)/write_input_file_CNN_2D_AlexNet.o
gcc $(DIRWIF)/sourceGraph.o $(DIRWIF)/write_input_file_CNN_2D_AlexNet.o -o writeInputFileCNN2DAlexNet
writeInputFileCNN2DAlexNetDirected: $(DIRWIF)/sourceGraph.c $(DIRWIF)/write_input_file_CNN_2D_AlexNet_directed.c
gcc -c $(DIRWIF)/sourceGraph.c -o $(DIRWIF)/sourceGraph.o
gcc -c $(DIRWIF)/write_input_file_CNN_2D_AlexNet_directed.c -o $(DIRWIF)/write_input_file_CNN_2D_AlexNet_directed.o
gcc $(DIRWIF)/sourceGraph.o $(DIRWIF)/write_input_file_CNN_2D_AlexNet_directed.o -o writeInputFileCNN2DAlexNetDirected
writeInputFile_LeNet_1x1: $(DIRWIF)/sourceGraph.c $(DIRWIF)/write_input_file_LeNet_1x1.c
gcc -c $(DIRWIF)/sourceGraph.c -o $(DIRWIF)/sourceGraph.o
gcc -c $(DIRWIF)/write_input_file_LeNet_1x1.c -o $(DIRWIF)/write_input_file_LeNet_1x1.o
gcc $(DIRWIF)/sourceGraph.o $(DIRWIF)/write_input_file_LeNet_1x1.o -o writeInputFile_LeNet_1x1
writeInputFile_LeNet_2x2_directed: $(DIRWIF)/sourceGraph.c $(DIRWIF)/write_input_file_LeNet_2x2_directed.c
gcc -c $(DIRWIF)/sourceGraph.c -o $(DIRWIF)/sourceGraph.o
gcc -c $(DIRWIF)/write_input_file_LeNet_2x2_directed.c -o $(DIRWIF)/write_input_file_LeNet_2x2_directed.o
gcc $(DIRWIF)/sourceGraph.o $(DIRWIF)/write_input_file_LeNet_2x2_directed.o -o writeInputFile_LeNet_2x2_directed
writeInputFile_LeNet_2x2: $(DIRWIF)/sourceGraph.c $(DIRWIF)/write_input_file_LeNet_2x2.c
gcc -c $(DIRWIF)/sourceGraph.c -o $(DIRWIF)/sourceGraph.o
gcc -c $(DIRWIF)/write_input_file_LeNet_2x2.c -o $(DIRWIF)/write_input_file_LeNet_2x2.o
gcc $(DIRWIF)/sourceGraph.o $(DIRWIF)/write_input_file_LeNet_2x2.o -o writeInputFile_LeNet_2x2
writeInputFileSBAC: $(DIRWIF)/sourceGraph.c $(DIRWIF)/write_input_file_LeNet-SBAC-PAD-2018.c
gcc -c $(DIRWIF)/sourceGraph.c -o $(DIRWIF)/sourceGraph.o
gcc -c $(DIRWIF)/write_input_file_LeNet-SBAC-PAD-2018.c -o $(DIRWIF)/write_input_file_LeNet-SBAC-PAD-2018.o
gcc $(DIRWIF)/sourceGraph.o $(DIRWIF)/write_input_file_LeNet-SBAC-PAD-2018.o -o writeInputFile_LeNet-SBAC-PAD-2018