-
Notifications
You must be signed in to change notification settings - Fork 126
/
Makefile.ext
182 lines (132 loc) · 7.98 KB
/
Makefile.ext
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# -*- Makefile -*-
arch = UNKNOWN
setup_file = setup/Make.$(arch)
include $(setup_file)
HPCG_DEPS = src/CG.o \
src/CG_ref.o \
src/TestCG.o \
src/ComputeResidual.o \
src/ExchangeHalo.o \
src/GenerateGeometry.o \
src/GenerateProblem.o \
src/GenerateProblem_ref.o \
src/CheckProblem.o \
src/MixedBaseCounter.o \
src/OptimizeProblem.o \
src/ReadHpcgDat.o \
src/ReportResults.o \
src/SetupHalo.o \
src/SetupHalo_ref.o \
src/TestSymmetry.o \
src/TestNorms.o \
src/WriteProblem.o \
src/YAML_Doc.o \
src/YAML_Element.o \
src/ComputeDotProduct.o \
src/ComputeDotProduct_ref.o \
src/mytimer.o \
src/ComputeOptimalShapeXYZ.o \
src/ComputeSPMV.o \
src/ComputeSPMV_ref.o \
src/ComputeSYMGS.o \
src/ComputeSYMGS_ref.o \
src/ComputeWAXPBY.o \
src/ComputeWAXPBY_ref.o \
src/ComputeMG_ref.o \
src/ComputeMG.o \
src/ComputeProlongation_ref.o \
src/ComputeRestriction_ref.o \
src/CheckAspectRatio.o \
src/OutputFile.o \
src/GenerateCoarseProblem.o \
src/init.o \
src/finalize.o
# These header files are included in many source files, so we recompile every file if one or more of these header is modified.
PRIMARY_HEADERS = HPCG_SRC_PATH/src/Geometry.hpp HPCG_SRC_PATH/src/SparseMatrix.hpp HPCG_SRC_PATH/src/Vector.hpp HPCG_SRC_PATH/src/CGData.hpp \
HPCG_SRC_PATH/src/MGData.hpp HPCG_SRC_PATH/src/hpcg.hpp
all: bin/xhpcg
bin/xhpcg: src/main.o $(HPCG_DEPS)
$(LINKER) $(LINKFLAGS) src/main.o $(HPCG_DEPS) $(HPCG_LIBS) -o bin/xhpcg
clean:
rm -f src/*.o bin/xhpcg
.PHONY: all clean
src/main.o: HPCG_SRC_PATH/src/main.cpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/CG.o: HPCG_SRC_PATH/src/CG.cpp HPCG_SRC_PATH/src/CG.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/CG_ref.o: HPCG_SRC_PATH/src/CG_ref.cpp HPCG_SRC_PATH/src/CG_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/TestCG.o: HPCG_SRC_PATH/src/TestCG.cpp HPCG_SRC_PATH/src/TestCG.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeResidual.o: HPCG_SRC_PATH/src/ComputeResidual.cpp HPCG_SRC_PATH/src/ComputeResidual.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ExchangeHalo.o: HPCG_SRC_PATH/src/ExchangeHalo.cpp HPCG_SRC_PATH/src/ExchangeHalo.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/GenerateGeometry.o: HPCG_SRC_PATH/src/GenerateGeometry.cpp HPCG_SRC_PATH/src/GenerateGeometry.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/GenerateProblem.o: HPCG_SRC_PATH/src/GenerateProblem.cpp HPCG_SRC_PATH/src/GenerateProblem.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/GenerateProblem_ref.o: HPCG_SRC_PATH/src/GenerateProblem_ref.cpp HPCG_SRC_PATH/src/GenerateProblem_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/CheckProblem.o: HPCG_SRC_PATH/src/CheckProblem.cpp HPCG_SRC_PATH/src/CheckProblem.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/MixedBaseCounter.o: HPCG_SRC_PATH/src/MixedBaseCounter.cpp HPCG_SRC_PATH/src/MixedBaseCounter.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/OptimizeProblem.o: HPCG_SRC_PATH/src/OptimizeProblem.cpp HPCG_SRC_PATH/src/OptimizeProblem.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ReadHpcgDat.o: HPCG_SRC_PATH/src/ReadHpcgDat.cpp HPCG_SRC_PATH/src/ReadHpcgDat.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ReportResults.o: HPCG_SRC_PATH/src/ReportResults.cpp HPCG_SRC_PATH/src/ReportResults.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/SetupHalo.o: HPCG_SRC_PATH/src/SetupHalo.cpp HPCG_SRC_PATH/src/SetupHalo.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/SetupHalo_ref.o: HPCG_SRC_PATH/src/SetupHalo_ref.cpp HPCG_SRC_PATH/src/SetupHalo_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/TestSymmetry.o: HPCG_SRC_PATH/src/TestSymmetry.cpp HPCG_SRC_PATH/src/TestSymmetry.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/TestNorms.o: HPCG_SRC_PATH/src/TestNorms.cpp HPCG_SRC_PATH/src/TestNorms.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/WriteProblem.o: HPCG_SRC_PATH/src/WriteProblem.cpp HPCG_SRC_PATH/src/WriteProblem.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/YAML_Doc.o: HPCG_SRC_PATH/src/YAML_Doc.cpp HPCG_SRC_PATH/src/YAML_Doc.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/YAML_Element.o: HPCG_SRC_PATH/src/YAML_Element.cpp HPCG_SRC_PATH/src/YAML_Element.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeDotProduct.o: HPCG_SRC_PATH/src/ComputeDotProduct.cpp HPCG_SRC_PATH/src/ComputeDotProduct.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeDotProduct_ref.o: HPCG_SRC_PATH/src/ComputeDotProduct_ref.cpp HPCG_SRC_PATH/src/ComputeDotProduct_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/finalize.o: HPCG_SRC_PATH/src/finalize.cpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/init.o: HPCG_SRC_PATH/src/init.cpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/mytimer.o: HPCG_SRC_PATH/src/mytimer.cpp HPCG_SRC_PATH/src/mytimer.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeOptimalShapeXYZ.o: HPCG_SRC_PATH/src/ComputeOptimalShapeXYZ.cpp HPCG_SRC_PATH/src/ComputeOptimalShapeXYZ.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeSPMV.o: HPCG_SRC_PATH/src/ComputeSPMV.cpp HPCG_SRC_PATH/src/ComputeSPMV.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeSPMV_ref.o: HPCG_SRC_PATH/src/ComputeSPMV_ref.cpp HPCG_SRC_PATH/src/ComputeSPMV_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeSYMGS.o: HPCG_SRC_PATH/src/ComputeSYMGS.cpp HPCG_SRC_PATH/src/ComputeSYMGS.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeSYMGS_ref.o: HPCG_SRC_PATH/src/ComputeSYMGS_ref.cpp HPCG_SRC_PATH/src/ComputeSYMGS_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeWAXPBY.o: HPCG_SRC_PATH/src/ComputeWAXPBY.cpp HPCG_SRC_PATH/src/ComputeWAXPBY.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeWAXPBY_ref.o: HPCG_SRC_PATH/src/ComputeWAXPBY_ref.cpp HPCG_SRC_PATH/src/ComputeWAXPBY_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeMG_ref.o: HPCG_SRC_PATH/src/ComputeMG_ref.cpp HPCG_SRC_PATH/src/ComputeMG_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeMG.o: HPCG_SRC_PATH/src/ComputeMG.cpp HPCG_SRC_PATH/src/ComputeMG.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeProlongation_ref.o: HPCG_SRC_PATH/src/ComputeProlongation_ref.cpp HPCG_SRC_PATH/src/ComputeProlongation_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/ComputeRestriction_ref.o: HPCG_SRC_PATH/src/ComputeRestriction_ref.cpp HPCG_SRC_PATH/src/ComputeRestriction_ref.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/GenerateCoarseProblem.o: HPCG_SRC_PATH/src/GenerateCoarseProblem.cpp HPCG_SRC_PATH/src/GenerateCoarseProblem.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/CheckAspectRatio.o: HPCG_SRC_PATH/src/CheckAspectRatio.cpp HPCG_SRC_PATH/src/CheckAspectRatio.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@
src/OutputFile.o: HPCG_SRC_PATH/src/OutputFile.cpp HPCG_SRC_PATH/src/OutputFile.hpp $(PRIMARY_HEADERS)
$(CXX) -c $(CXXFLAGS) -IHPCG_SRC_PATH/src $< -o $@