-
Notifications
You must be signed in to change notification settings - Fork 36
/
make_config
executable file
·255 lines (192 loc) · 5.28 KB
/
make_config
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
HPCSYS = $(shell $(IPM_ROOT)/bin/hpcenv.pl)
BUILDOPT_HAVE_MPI = "yes"
#BUILDOPT_HAVE_MPI_TRACE = "yes"
#BUILDOPT_HAVE_POSIXIO = "yes"
#BUILDOPT_HAVE_POSIXIO_TRACE = "yes"
#BUILDOPT_HAVE_PAPI = "yes"
#BUILDOPT_HAVE_SELFMONITOR = "yes"
#BUILDOPT_HAVE_OMPTRACEPOINTS = "yes"
#BUILDOPT_HAVE_CUDA = "yes"
#BUILDOPT_HAVE_CUFFT = "yes"
#BUILDOPT_HAVE_CUBLAS = "yes"
#
# modules below are experimental
#
#BUILDOPT_HAVE_CALLPATH = "yes"
#BUILDOPT_HAVE_KEYHIST = "yes"
#BUILDOPT_HAVE_MEM = "yes"
#BUILDOPT_HAVE_MPIIO = "yes"
#BUILDOPT_HAVE_PROCCTRL = "yes"
#BUILDOPT_HAVE_CLUSTERING = "yes"
MPICC=mpicc
MPIF90=mpif90
MPIRUN=mpiexec
MPIRUN_TASKS=-n 16
#CFLAGS=-DDEBUG
FUNDERSCORE=-funderscore_post
ifeq ($(HPCSYS), Franklin)
MPICC=cc
MPIF90=ftn
CFLAGS+=-DMPI_STATUS_COUNT=count -DIPM_DISABLE_PWENT -DLINUX_XT5
CFLAGS+=-DOS_LINUX
BUILDOPT_HAVE_LIBUNWIND = "yes"
LIBUNWIND_INC=-I$(HOME)/sw/x86_64/include
LIBUNWIND_LIB=-L$(HOME)/sw/x86_64/lib -lunwind
PAPI_INC=$(PAPI_INCLUDE_OPTS)
PAPI_LIB=$(PAPI_POST_LINK_OPTS)
endif
ifeq ($(HPCSYS), Hopper)
MPICC=cc
MPIF90=ftn
CFLAGS+=-DMPI_STATUS_COUNT=count -DIPM_DISABLE_PWENT -DLINUX_XT5
CFLAGS+=-DOS_LINUX
# BUILDOPT_HAVE_LIBUNWIND = "yes"
# LIBUNWIND_INC=-I$(HOME)/sw/x86_64/include
# LIBUNWIND_LIB=-L$(HOME)/sw/x86_64/lib -lunwind
# PAPI_INC=$(PAPI_INCLUDE_OPTS)
# PAPI_LIB=$(PAPI_POST_LINK_OPTS)
endif
ifeq ($(HPCSYS), Kraken)
MPICC=cc
MPIF90=ftn
CFLAGS+=-DMPI_STATUS_COUNT=count -DIPM_DISABLE_PWENT -DLINUX_XT5
CFLAGS+=-DOS_LINUX
BUILDOPT_HAVE_LIBUNWIND = "yes"
LIBUNWIND_INC=-I$(HOME)/sw/x86_64/include
LIBUNWIND_LIB=-L$(HOME)/sw/x86_64/lib -lunwind
PAPI_INC=$(PAPI_INCLUDE_OPTS)
PAPI_LIB=$(PAPI_POST_LINK_OPTS)
endif
ifeq ($(HPCSYS), Ranger)
CFLAGS+=-DMPI_STATUS_COUNT=count
CFLAGS+=-DOS_LINUX
endif
ifeq ($(HPCSYS), ipm2dev)
BUILDOPT_HAVE_DYNLOAD = "yes"
CFLAGS+=-DOS_LINUX
CFLAGS+=-DMPI_STATUS_COUNT=_count
PAPI_INC=-I/usr/local/papi-4.1.1/include
PAPI_LIB=-L/usr/local/papi-4.1.1/lib -lpapi
CUDA_INC=-I/usr/local/cuda/include
BUILDOPT_HAVE_LIBUNWIND = "yes"
LIBUNWIND_INC=-I$(HOME)/sw/x86_64/include
LIBUNWIND_LIB=-L$(HOME)/sw/x86_64/lib -lunwind
endif
ifeq ($(HPCSYS), Lawrencium)
BUILDOPT_HAVE_DYNLOAD = "yes"
CFLAGS+=-DMPI_STATUS_COUNT=_count
CFLAGS+=-DOS_LINUX
endif
ifeq ($(HPCSYS), turing)
BUILDOPT_HAVE_DYNLOAD = "yes"
MPICC=mpicc
CFLAGS+=-DMPI_STATUS_COUNT=_count
CFLAGS+=-DOS_LINUX
endif
ifeq ($(HPCSYS), tesla)
BUILDOPT_HAVE_DYNLOAD = "yes"
MPICC=nvcc
CFLAGS+=-DMPI_STATUS_COUNT=_count
CFLAGS+=-DOS_LINUX
endif
ifeq ($(HPCSYS), hlrb2)
BUILDOPT_NEED_C2F_MACROS = "yes"
BUILDOPT_HAVE_DYNLOAD = "yes"
CFLAGS+=-DMPI_STATUS_COUNT=size
CFLAGS+=-DOS_LINUX
endif
ifeq ($(HPCSYS), carver)
BUILDOPT_HAVE_DYNLOAD = "yes"
CFLAGS+=-DOS_LINUX
CFLAGS+=-DMPI_STATUS_COUNT=_count
CUDA_INC=$(CUDA_INCLUDE)
# Not yet !
# PAPI_INC=-I/usr/local/papi-3.7.0/include
# PAPI_LIB=-L/usr/local/papi-3.7.0/lib -lpapi
endif
ifeq ($(HPCSYS), Linux-CentOS)
CFLAGS+=-DMPI_STATUS_COUNT=_count
CFLAGS+=-DOS_LINUX
endif
ifeq ($(HPCSYS), LMU)
CFLAGS+=-DMPI_STATUS_COUNT=count
CFLAGS+=-DOS_LINUX
endif
ifeq ($(HPCSYS), salzburg)
CFLAGS+=-DMPI_STATUS_COUNT=_count
CFLAGS+=-DOS_LINUX
BUILDOPT_HAVE_LIBUNWIND = "yes"
LIBUNWIND_LIB=-lunwind
PAPI_INC=-I/home/fuerling/sw/papi-4.1.1/include
PAPI_LIB=-L/home/fuerling/sw/papi-4.1.1/lib -lpapi
# LIBUNWIND_INC=-I$(HOME)/sw/x86_64/include
# LIBUNWIND_LIB=-L$(HOME)/sw/x86_64/lib -lunwind
endif
ifeq ($(HPCSYS), LRZ_Linux_Cluster)
CFLAGS+=-DMPI_STATUS_COUNT=count
CFLAGS+=-DOS_LINUX
BUILDOPT_HAVE_DYNLOAD = "yes"
BUILDOPT_NO_DELAYED_FINALIZE = "yes"
endif
ifeq ($(BUILDOPT_HAVE_MPI), "yes")
CFLAGS+=-DHAVE_MPI
endif
ifeq ($(BUILDOPT_HAVE_MPIIO), "yes")
CFLAGS+=-DHAVE_MPIIO
endif
ifeq ($(BUILDOPT_HAVE_POSIXIO), "yes")
CFLAGS+=-DHAVE_POSIXIO
endif
ifeq ($(BUILDOPT_HAVE_CALLPATH), "yes")
CFLAGS+=-DHAVE_CALLPATH
endif
ifeq ($(BUILDOPT_HAVE_KEYHIST), "yes")
CFLAGS+=-DHAVE_KEYHIST
endif
ifeq ($(BUILDOPT_HAVE_MEM), "yes")
CFLAGS+=-DHAVE_MEM
endif
ifeq ($(BUILDOPT_HAVE_POSIXIO_TRACE), "yes")
CFLAGS+=-DHAVE_POSIXIO_TRACE
endif
ifeq ($(BUILDOPT_HAVE_MPI_TRACE), "yes")
CFLAGS+=-DHAVE_MPI_TRACE
endif
ifeq ($(BUILDOPT_HAVE_LIBUNWIND), "yes")
CFLAGS+=$(LIBUNWIND_INC) -DHAVE_LIBUNWIND
LFLAGS+=$(LIBUNWIND_LIB)
endif
ifeq ($(BUILDOPT_HAVE_DYNLOAD), "yes")
CFLAGS+=-DHAVE_DYNLOAD
endif
ifeq ($(BUILDOPT_NEED_C2F_MACROS), "yes")
CFLAGS+=-DNEED_C2F_MACROS
endif
ifeq ($(BUILDOPT_HAVE_PAPI), "yes")
CFLAGS+=$(PAPI_INC) -DHAVE_PAPI
LFLAGS+=$(PAPI_LIB)
endif
ifeq ($(BUILDOPT_HAVE_SELFMONITOR), "yes")
CFLAGS+=-DHAVE_SELFMONITOR
endif
ifeq ($(BUILDOPT_HAVE_PROCCTRL), "yes")
CFLAGS+=-DHAVE_PROCCTRL
endif
ifeq ($(BUILDOPT_HAVE_CLUSTERING), "yes")
CFLAGS+=-DHAVE_CLUSTERING
endif
ifeq ($(BUILDOPT_HAVE_OMPTRACEPOINTS), "yes")
CFLAGS+=-DHAVE_OMPTRACEPOINTS
endif
ifeq ($(BUILDOPT_HAVE_CUDA), "yes")
CFLAGS+=-DHAVE_CUDA $(CUDA_INC)
endif
ifeq ($(BUILDOPT_HAVE_CUFFT), "yes")
CFLAGS+=-DHAVE_CUFFT $(CUDA_INC)
endif
ifeq ($(BUILDOPT_HAVE_CUBLAS), "yes")
CFLAGS+=-DHAVE_CUBLAS $(CUDA_INC)
endif
ifeq ($(BUILDOPT_NO_DELAYED_FINALIZE), "yes")
CFLAGS+=-DHAVE_NO_DELAYED_FINALIZE
endif