Makefile.am 29.3 KB
Newer Older
1
## Process this file with automake to produce Makefile.in
2

3
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
4

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
5
AM_FCFLAGS = $(SCALAPACK_FCFLAGS) $(FC_MODINC)modules
6
AM_LDFLAGS = $(SCALAPACK_LDFLAGS)
7

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
8
9
FCLD = @ACTUAL_FC@

10
# libelpa
11
12
13
14
lib_LTLIBRARIES = libelpa@SUFFIX@.la
libelpa@SUFFIX@_la_LINK = $(FCLINK) $(AM_LDFLAGS) -version-info $(ELPA_SO_VERSION)
libelpa@SUFFIX@_la_LIBADD = libelpa@SUFFIX@_public.la libelpa@SUFFIX@_private.la
libelpa@SUFFIX@_la_SOURCES =
15

16
17
# parts with public interface
noinst_LTLIBRARIES = libelpa@SUFFIX@_public.la
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
18
libelpa@SUFFIX@_public_la_FCFLAGS = $(AM_FCFLAGS) $(FC_MODOUT)modules $(FC_MODINC)private_modules
19
libelpa@SUFFIX@_public_la_SOURCES = \
20
21
  src/elpa.F90 \
  src/elpa_api.F90 \
22
  src/elpa_constants.F90
23

24
25
# internal parts
noinst_LTLIBRARIES += libelpa@SUFFIX@_private.la
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
26
libelpa@SUFFIX@_private_la_FCFLAGS = $(AM_FCFLAGS) $(FC_MODOUT)private_modules $(FC_MODINC)private_modules
27
libelpa@SUFFIX@_private_la_SOURCES = \
28
  src/elpa_impl.F90 \
29
  src/elpa_autotune_impl.F90 \
30
  src/elpa_abstract_impl.F90 \
31
  src/helpers/mod_precision.F90 \
32
  src/helpers/mod_blas_interfaces.F90 \
33
  src/helpers/mod_scalapack_interfaces.F90 \
34
35
  src/helpers/mod_mpi.F90 \
  src/helpers/mod_mpi_stubs.F90 \
36
  src/helpers/mod_omp.F90 \
37
38
39
40
41
42
  src/elpa_generated_fortran_interfaces.F90 \
  src/elpa2/mod_redist_band.F90 \
  src/elpa2/mod_pack_unpack_cpu.F90 \
  src/elpa2/mod_compute_hh_trafo.F90 \
  src/helpers/aligned_mem.F90 \
  src/elpa1/elpa1_compute_private.F90 \
43
  src/elpa1/elpa1_auxiliary.F90 \
44
45
46
47
48
49
50
51
52
53
54
55
56
  src/elpa2/elpa2_determine_workload.F90 \
  src/elpa2/elpa2_compute.F90 \
  src/elpa2/kernels/mod_single_hh_trafo_real.F90 \
  src/GPU/check_for_gpu.F90 \
  src/GPU/mod_cuda.F90 \
  src/elpa2/GPU/interface_c_kernel.F90 \
  src/elpa2/mod_pack_unpack_gpu.F90 \
  src/elpa2/qr/qr_utils.F90 \
  src/elpa2/qr/elpa_qrkernels.F90 \
  src/elpa2/qr/elpa_pdlarfb.F90 \
  src/elpa2/qr/elpa_pdgeqrf.F90 \
  src/elpa1/elpa1.F90 \
  src/elpa2/elpa2.F90 \
57
  src/elpa_generalized/cannon.c \
58
  src/helpers/matrix_plot.F90 \
Andreas Marek's avatar
Andreas Marek committed
59
  src/general/mod_elpa_skewsymmetric_blas.F90 \
60
  src/solve_tridi/mod_global_product.F90 \
Andreas Marek's avatar
Andreas Marek committed
61
  src/solve_tridi/mod_global_gather.F90 \
Andreas Marek's avatar
Andreas Marek committed
62
  src/solve_tridi/mod_resort_ev.F90 \
63
64
65
66
67
68
69
70
71
  src/solve_tridi/mod_transform_columns.F90 \
  src/solve_tridi/mod_check_monotony.F90 \
  src/solve_tridi/mod_add_tmp.F90 \
  src/solve_tridi/mod_merge_systems.F90 \
  src/solve_tridi/mod_merge_recursive.F90 \
  src/solve_tridi/mod_solve_tridi.F90 \
  src/elpa1/mod_distribute_global_column.F90 \
  src/elpa1/mod_v_add_s.F90 \
  src/elpa1/mod_solve_secular_equation.F90 \
72
73
  src/elpa_index.c

74
libelpa@SUFFIX@_private_la_SOURCES += src/elpa_c_interface.c
Andreas Marek's avatar
Andreas Marek committed
75
76


77
78
libelpa@SUFFIX@_private_la_SOURCES += \
  src/general/elpa_utilities.F90
79

80
EXTRA_libelpa@SUFFIX@_private_la_DEPENDENCIES = \
81
82
  src/elpa1/elpa_reduce_add_vectors.F90 \
  src/elpa1/elpa_transpose_vectors.F90 \
Andreas Marek's avatar
Andreas Marek committed
83
  src/elpa_api_math_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
84
85
  src/elpa_impl_math_template.F90 \
  src/elpa_impl_generalized_transform_template.F90 \
86
87
88
  src/elpa1/elpa1_compute_template.F90 \
  src/elpa2/elpa2_compute_real_template.F90 \
  src/elpa2/elpa2_compute_complex_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
89
  src/helpers/elpa_redistribute_template.F90 \
90
91
92
93
94
95
96
97
98
99
100
101
102
103
  src/elpa1/elpa1_template.F90 \
  src/elpa2/elpa2_template.F90 \
  src/elpa2/qr/qr_utils_template.F90 \
  src/elpa2/qr/elpa_pdlarfb_template.F90 \
  src/elpa2/qr/elpa_pdgeqrf_template.F90 \
  src/elpa2/elpa2_bandred_template.F90 \
  src/elpa2/elpa2_symm_matrix_allreduce_real_template.F90 \
  src/elpa2/elpa2_trans_ev_band_to_full_template.F90 \
  src/elpa2/elpa2_tridiag_band_template.F90 \
  src/elpa2/elpa2_trans_ev_tridi_to_band_template.F90 \
  src/elpa2/elpa2_herm_matrix_allreduce_complex_template.F90 \
  src/elpa2/kernels/real_template.F90 \
  src/elpa2/kernels/complex_template.F90 \
  src/elpa2/kernels/simple_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
104
  src/elpa2/kernels/simple_block4_template.F90 \
105
  src/elpa2/kernels/simple_block6_template.F90 \
106
107
108
109
110
  src/elpa2/pack_unpack_cpu.F90 \
  src/elpa2/pack_unpack_gpu.F90 \
  src/elpa2/compute_hh_trafo.F90 \
  src/elpa2/redist_band.F90 \
  src/general/sanity.F90 \
111
  src/general/error_checking.inc \
112
113
114
115
  src/elpa1/elpa_cholesky_template.F90 \
  src/elpa1/elpa_invert_trm.F90 \
  src/elpa1/elpa_multiply_a_b.F90 \
  src/elpa1/elpa_solve_tridi_impl_public.F90 \
Andreas Marek's avatar
Andreas Marek committed
116
117
  src/general/elpa_ssr2_template.F90 \
  src/general/elpa_ssmv_template.F90 \
118
  src/general/precision_macros.h \
119
  src/general/precision_typedefs.h \
120
  src/general/precision_kinds.F90
121

122
if HAVE_DETAILED_TIMINGS
123
124
125
126
127
128
129
130
131
libelpa@SUFFIX@_private_la_SOURCES += \
  src/ftimings/ftimings.F90 \
  src/ftimings/ftimings_type.F90 \
  src/ftimings/ftimings_value.F90 \
  src/ftimings/highwater_mark.c \
  src/ftimings/resident_set_size.c \
  src/ftimings/time.c \
  src/ftimings/virtual_memory.c \
  src/ftimings/papi.c
132

133
else
134
135
libelpa@SUFFIX@_private_la_SOURCES += \
  src/helpers/timer_dummy.F90
136
137
endif

138
if WITH_GPU_VERSION
139
  libelpa@SUFFIX@_private_la_SOURCES += src/GPU/cudaFunctions.cu src/GPU/cuUtils.cu src/elpa2/GPU/ev_tridi_band_gpu_real.cu src/elpa2/GPU/ev_tridi_band_gpu_complex.cu
140
141
endif

142
if !WITH_MPI
143
  libelpa@SUFFIX@_private_la_SOURCES += src/helpers/mod_time_c.F90
144
if !HAVE_DETAILED_TIMINGS
145
  libelpa@SUFFIX@_private_la_SOURCES += src/ftimings/time.c
146
147
148
endif
endif

Andreas Marek's avatar
Andreas Marek committed
149
150
151
152
153

if HAVE_HETEROGENOUS_CLUSTER_SUPPORT
  libelpa@SUFFIX@_private_la_SOURCES +=  src/helpers/get_cpuid_set.c src/helpers/mod_simd_kernel.F90
endif

Andreas Marek's avatar
Andreas Marek committed
154
if WITH_REAL_GENERIC_KERNEL
Andreas Marek's avatar
Andreas Marek committed
155
  libelpa@SUFFIX@_private_la_SOURCES +=  src/elpa2/kernels/real.F90
156
157
endif

Andreas Marek's avatar
Andreas Marek committed
158
if WITH_COMPLEX_GENERIC_KERNEL
Andreas Marek's avatar
Andreas Marek committed
159
  libelpa@SUFFIX@_private_la_SOURCES +=  src/elpa2/kernels/complex.F90
160
161
endif

Andreas Marek's avatar
Andreas Marek committed
162
if WITH_REAL_GENERIC_SIMPLE_KERNEL
Andreas Marek's avatar
Andreas Marek committed
163
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_simple.F90
164
165
endif

Andreas Marek's avatar
Andreas Marek committed
166
if WITH_COMPLEX_GENERIC_SIMPLE_KERNEL
Andreas Marek's avatar
Andreas Marek committed
167
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_simple.F90
168
169
endif

Andreas Marek's avatar
Andreas Marek committed
170
171
172
173
if WITH_REAL_GENERIC_SIMPLE_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_simple_block4.F90
endif

174
175
176
177
if WITH_REAL_GENERIC_SIMPLE_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_simple_block6.F90
endif

Andreas Marek's avatar
Andreas Marek committed
178
if WITH_REAL_BGP_KERNEL
Andreas Marek's avatar
Andreas Marek committed
179
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_bgp.f90
180
181
endif

Andreas Marek's avatar
Andreas Marek committed
182
if WITH_REAL_BGQ_KERNEL
Andreas Marek's avatar
Andreas Marek committed
183
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_bgq.f90
184
185
endif

186
if WITH_REAL_SSE_ASSEMBLY_KERNEL
Andreas Marek's avatar
Andreas Marek committed
187
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/asm_x86_64_double_precision.s
188
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
189
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/asm_x86_64_single_precision.s
190
endif
191

Andreas Marek's avatar
Andreas Marek committed
192
else
193
if WITH_COMPLEX_SSE_ASSEMBLY_KERNEL
Andreas Marek's avatar
Andreas Marek committed
194
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/asm_x86_64_double_precision.s
195
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
196
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/asm_x86_64_single_precision.s
197
endif
198
199
endif
endif
Andreas Marek's avatar
Andreas Marek committed
200

201
202
if WITH_REAL_SPARC64_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_2hv_double_precision.c
Andreas Marek's avatar
Andreas Marek committed
203
204
205
#if WANT_SINGLE_PRECISION_REAL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_2hv_single_precision.c
#endif
206
207
endif

208
209
210
211
212
213
214
if WITH_REAL_NEON_ARCH64_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_2hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_2hv_single_precision.c
endif
endif

215
216
if WITH_REAL_VSX_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_2hv_double_precision.c
217
218
219
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_2hv_single_precision.c
endif
220
221
endif

222
if WITH_REAL_SSE_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
223
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_2hv_double_precision.c
224
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
225
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_2hv_single_precision.c
226
endif
227
228
endif

Andreas Marek's avatar
Andreas Marek committed
229
if WITH_REAL_AVX_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
230
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_2hv_double_precision.c
231
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
232
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_2hv_single_precision.c
233
endif
Andreas Marek's avatar
Andreas Marek committed
234
235
endif

236
if WITH_REAL_AVX2_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
237
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_2hv_double_precision.c
238
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
239
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_2hv_single_precision.c
240
endif
241
242
endif

243
if WITH_REAL_AVX512_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
244
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_2hv_double_precision.c
245
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
246
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_2hv_single_precision.c
247
endif
248
249
endif

Andreas Marek's avatar
Andreas Marek committed
250
251
252
253
254
255
256
if WITH_REAL_SVE512_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sve512_2hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sve512_2hv_single_precision.c
endif
endif

257
258
if WITH_REAL_SPARC64_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_4hv_double_precision.c
259
260
261
#if WANT_SINGLE_PRECISION_REAL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_4hv_single_precision.c
#endif
262
endif
263

264
265
266
267
268
269
270
if WITH_REAL_NEON_ARCH64_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_4hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_4hv_single_precision.c
endif
endif

271
272
273
274
275
276
if WITH_REAL_VSX_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_4hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_4hv_single_precision.c
endif
endif
277

278
if WITH_REAL_SSE_BLOCK4_KERNEL
Andreas Marek's avatar
Andreas Marek committed
279
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_4hv_double_precision.c
280
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
281
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_4hv_single_precision.c
282
endif
283
284
endif

Andreas Marek's avatar
Andreas Marek committed
285
if WITH_REAL_AVX_BLOCK4_KERNEL
Andreas Marek's avatar
Andreas Marek committed
286
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_4hv_double_precision.c
287
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
288
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_4hv_single_precision.c
289
endif
Andreas Marek's avatar
Andreas Marek committed
290
291
endif

292
if WITH_REAL_AVX2_BLOCK4_KERNEL
Andreas Marek's avatar
Andreas Marek committed
293
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_4hv_double_precision.c
294
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
295
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_4hv_single_precision.c
296
endif
297
298
endif

299
if WITH_REAL_AVX512_BLOCK4_KERNEL
Andreas Marek's avatar
Andreas Marek committed
300
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_4hv_double_precision.c
301
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
302
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_4hv_single_precision.c
303
endif
304
305
endif

Andreas Marek's avatar
Andreas Marek committed
306
307
308
309
310
311
312
if WITH_REAL_SVE512_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sve512_4hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sve512_4hv_single_precision.c
endif
endif

313
314
if WITH_REAL_SPARC64_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_6hv_double_precision.c
315
316
317
#if WANT_SINGLE_PRECISION_REAL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sparc64_6hv_single_precision.c
#endif
318
endif
319

320
321
322
323
324
325
326
if WITH_REAL_NEON_ARCH64_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_6hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_neon_arch64_6hv_single_precision.c
endif
endif

327
328
329
330
331
332
if WITH_REAL_VSX_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_6hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_vsx_6hv_single_precision.c
endif
endif
333

334
if WITH_REAL_SSE_BLOCK6_KERNEL
Andreas Marek's avatar
Andreas Marek committed
335
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_6hv_double_precision.c
336
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
337
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sse_6hv_single_precision.c
338
endif
339
340
endif

Andreas Marek's avatar
Andreas Marek committed
341
if WITH_REAL_AVX_BLOCK6_KERNEL
Andreas Marek's avatar
Andreas Marek committed
342
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_6hv_double_precision.c
343
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
344
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx_6hv_single_precision.c
345
endif
Andreas Marek's avatar
Andreas Marek committed
346
347
endif

348
if WITH_REAL_AVX2_BLOCK6_KERNEL
Andreas Marek's avatar
Andreas Marek committed
349
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_6hv_double_precision.c
350
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
351
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx2_6hv_single_precision.c
352
endif
353
354
endif

355
if WITH_REAL_AVX512_BLOCK6_KERNEL
Andreas Marek's avatar
Andreas Marek committed
356
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_6hv_double_precision.c
357
if WANT_SINGLE_PRECISION_REAL
Andreas Marek's avatar
Andreas Marek committed
358
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_avx512_6hv_single_precision.c
359
endif
360
361
endif

Andreas Marek's avatar
Andreas Marek committed
362
363
364
365
366
367
368
if WITH_REAL_SVE512_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sve512_6hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/real_sve512_6hv_single_precision.c
endif
endif

369
370
371
372
373
374
375
376
377
378
379
380
381
#if WITH_COMPLEX_SPARC64_BLOCK1_KERNEL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sparc64_1hv_double_precision.c
#if WANT_SINGLE_PRECISION_COMPLEX
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sparc64_1hv_single_precision.c
#endif
#endif
#
#if WITH_COMPLEX_VSX_BLOCK1_KERNEL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_vsx_1hv_double_precision.c
#if WANT_SINGLE_PRECISION_COMPLEX
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_vsx_1hv_single_precision.c
#endif
#endif
382

383
if WITH_COMPLEX_SSE_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
384
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sse_1hv_double_precision.c
385
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
386
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sse_1hv_single_precision.c
387
endif
388
389
endif

Andreas Marek's avatar
Andreas Marek committed
390
if WITH_COMPLEX_AVX_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
391
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx_1hv_double_precision.c
392
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
393
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx_1hv_single_precision.c
394
endif
Andreas Marek's avatar
Andreas Marek committed
395
396
endif

397
if WITH_COMPLEX_AVX2_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
398
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx2_1hv_double_precision.c
399
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
400
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx2_1hv_single_precision.c
401
endif
402
403
endif

404
if WITH_COMPLEX_AVX512_BLOCK1_KERNEL
Andreas Marek's avatar
Andreas Marek committed
405
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx512_1hv_double_precision.c
406
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
407
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx512_1hv_single_precision.c
408
endif
409
410
endif

Andreas Marek's avatar
Andreas Marek committed
411
412
413
414
415
416
417
if WITH_COMPLEX_SVE512_BLOCK1_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sve512_1hv_double_precision.c
if WANT_SINGLE_PRECISION_COMPLEX
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sve512_1hv_single_precision.c
endif
endif

418
419
420
421
422
423
424
425
426
427
428
429
430
#if WITH_COMPLEX_SPARC64_BLOCK2_KERNEL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sparc64_2hv_double_precision.c
#if WANT_SINGLE_PRECISION_COMPLEX
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sparc64_2hv_single_precision.c
#endif
#endif
#
#if WITH_COMPLEX_VSX_BLOCK2_KERNEL
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_vsx_2hv_double_precision.c
#if WANT_SINGLE_PRECISION_COMPLEX
#  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_vsx_2hv_single_precision.c
#endif
#endif
431

432
if WITH_COMPLEX_SSE_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
433
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sse_2hv_double_precision.c
434
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
435
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sse_2hv_single_precision.c
436
endif
437
438
endif

Andreas Marek's avatar
Andreas Marek committed
439
if WITH_COMPLEX_AVX_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
440
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx_2hv_double_precision.c
441
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
442
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx_2hv_single_precision.c
443
endif
Andreas Marek's avatar
Andreas Marek committed
444
445
endif

446
if WITH_COMPLEX_AVX2_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
447
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx2_2hv_double_precision.c
448
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
449
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx2_2hv_single_precision.c
450
endif
451
452
endif

453
if WITH_COMPLEX_AVX512_BLOCK2_KERNEL
Andreas Marek's avatar
Andreas Marek committed
454
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx512_2hv_double_precision.c
455
if WANT_SINGLE_PRECISION_COMPLEX
Andreas Marek's avatar
Andreas Marek committed
456
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_avx512_2hv_single_precision.c
457
endif
458
459
endif

Andreas Marek's avatar
Andreas Marek committed
460
461
462
463
464
465
466
if WITH_COMPLEX_SVE512_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sve512_2hv_double_precision.c
if WANT_SINGLE_PRECISION_COMPLEX
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2/kernels/complex_sve512_2hv_single_precision.c
endif
endif

467
468
469
470
471
472

if STORE_BUILD_CONFIG
  libelpa@SUFFIX@_private_la_SOURCES += src/helpers/print_build_config.c
endif


473
# Cuda files
474
.cu.lo:
475
	NVCC="$(NVCC)" libtool --mode=compile --tag=CC $(top_srcdir)/nvcc_wrap $(NVCCFLAGS) $(LDFLAGS) -I$(top_builddir)/ -I$(top_srcdir)/  -c $< -o $@
Andreas Marek's avatar
Andreas Marek committed
476

477
478
479
480
481
# Assembly files
LTCCASCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
	$(LIBTOOLFLAGS) --mode=compile $(CCAS) $(AM_CCASFLAGS) \
	$(CCASFLAGS)

482
483
484
include generated_headers.am
BUILT_SOURCES = $(generated_headers)

485
# install public headers and Fortran modules files in the include/ dir
486
elpa_includedir = $(includedir)/elpa@SUFFIX@-@PACKAGE_VERSION@
487
488
nobase_elpa_include_HEADERS = \
  $(wildcard modules/*) \
489
490
  src/helpers/lapack_interfaces.h \
  src/helpers/scalapack_interfaces.h \
Andreas Marek's avatar
Andreas Marek committed
491
  elpa/elpa_simd_constants.h \
492
  elpa/elpa.h \
Andreas Marek's avatar
Andreas Marek committed
493
  elpa/elpa_generic.h
494
495

nobase_nodist_elpa_include_HEADERS = \
496
  elpa/elpa_version.h \
497
498
  elpa/elpa_constants.h \
  elpa/elpa_generated.h \
Andreas Marek's avatar
Andreas Marek committed
499
  elpa/elpa_generated_c_api.h
500

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
501
dist_man_MANS = \
Andreas Marek's avatar
Andreas Marek committed
502
  man/elpa2_print_kernels.1 \
Andreas Marek's avatar
Andreas Marek committed
503
  man/elpa_init.3 \
Andreas Marek's avatar
Andreas Marek committed
504
  man/elpa_allocate.3 \
Andreas Marek's avatar
Andreas Marek committed
505
  man/elpa_set.3 \
Andreas Marek's avatar
Andreas Marek committed
506
  man/elpa_setup.3 \
507
  man/elpa_eigenvalues.3 \
508
  man/elpa_eigenvectors.3 \
509
510
  man/elpa_skew_eigenvalues.3 \
  man/elpa_skew_eigenvectors.3 \
511
  man/elpa_generalized_eigenvectors.3 \
512
  man/elpa_generalized_eigenvalues.3 \
513
  man/elpa_cholesky.3 \
514
  man/elpa_invert_triangular.3 \
515
  man/elpa_solve_tridiagonal.3 \
516
  man/elpa_hermitian_multiply.3 \
Andreas Marek's avatar
Andreas Marek committed
517
  man/elpa_deallocate.3 \
518
519
  man/elpa_load_settings.3 \
  man/elpa_store_settings.3 \
Andreas Marek's avatar
Andreas Marek committed
520
521
522
523
  man/elpa_print_settings.3 \
  man/elpa_autotune_save_state.3 \
  man/elpa_autotune_load_state.3 \
  man/elpa_autotune_print_state.3 \
524
525
526
527
  man/elpa_autotune_setup.3 \
  man/elpa_autotune_step.3 \
  man/elpa_autotune_set_best.3 \
  man/elpa_autotune_deallocate.3 \
Andreas Marek's avatar
Andreas Marek committed
528
  man/elpa_uninit.3
529

530
dist_doc_DATA = README.md USERS_GUIDE.md USERS_GUIDE_DEPRECATED_LEGACY_API.md INSTALL.md CONTRIBUTING.md LICENSE Changelog COPYING/COPYING COPYING/gpl.txt COPYING/lgpl.txt
531

532
533
# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
534
pkgconfig_DATA = @PKG_CONFIG_FILE@
535

536
537
# programs
bin_PROGRAMS = \
538
  elpa2_print_kernels@SUFFIX@
539

540
541
noinst_PROGRAMS =
check_SCRIPTS =
542

543
544
test_program_ldadd = libelpatest@SUFFIX@.la libelpa@SUFFIX@.la
test_program_fcflags = $(AM_FCFLAGS) $(FC_MODOUT)test_modules $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
545
546
547

# library with shared sources for the test files
noinst_LTLIBRARIES += libelpatest@SUFFIX@.la
548
libelpatest@SUFFIX@_la_FCFLAGS = $(test_program_fcflags)
549
libelpatest@SUFFIX@_la_SOURCES = \
550
  test/shared/tests_variable_definitions.F90 \
Andreas Marek's avatar
Andreas Marek committed
551
552
  test/shared/mod_tests_scalapack_interfaces.F90 \
  test/shared/mod_tests_blas_interfaces.F90 \
553
554
555
556
557
558
  test/shared/test_util.F90 \
  test/shared/test_read_input_parameters.F90 \
  test/shared/test_check_correctness.F90 \
  test/shared/test_setup_mpi.F90 \
  test/shared/test_blacs_infrastructure.F90 \
  test/shared/test_prepare_matrix.F90 \
559
  test/shared/test_analytic.F90 \
560
  test/shared/test_output_type.F90
Andreas Marek's avatar
Andreas Marek committed
561

562
563
564
565
566
if WITH_SCALAPACK_TESTS
libelpatest@SUFFIX@_la_SOURCES += \
  test/shared/test_scalapack.F90
endif

567
if HAVE_REDIRECT
568
libelpatest@SUFFIX@_la_SOURCES += \
569
570
  test/shared/test_redir.c \
  test/shared/test_redirect.F90
571
572
573
574
endif


elpa2_print_kernels@SUFFIX@_SOURCES = src/elpa2/elpa2_print_kernels.F90
575
elpa2_print_kernels@SUFFIX@_LDADD = libelpa@SUFFIX@.la
576
elpa2_print_kernels@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)modules
577

578
include test_programs.am
579

580
581
#include test_programs_manual.am

582
583
584
585
noinst_PROGRAMS += validate_double_instance@SUFFIX@
check_SCRIPTS += validate_double_instance@SUFFIX@_default.sh
validate_double_instance@SUFFIX@_SOURCES = test/Fortran/elpa2/double_instance.F90
validate_double_instance@SUFFIX@_LDADD = $(test_program_ldadd)
586
validate_double_instance@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
587
588
589
590
591

noinst_PROGRAMS += validate_real_2stage_banded@SUFFIX@
check_SCRIPTS += validate_real_2stage_banded@SUFFIX@_default.sh
validate_real_2stage_banded@SUFFIX@_SOURCES = test/Fortran/elpa2/real_2stage_banded.F90 
validate_real_2stage_banded@SUFFIX@_LDADD = $(test_program_ldadd)
592
validate_real_2stage_banded@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
593
594
595
596
597

noinst_PROGRAMS += validate_complex_2stage_banded@SUFFIX@
check_SCRIPTS += validate_complex_2stage_banded@SUFFIX@_default.sh
validate_complex_2stage_banded@SUFFIX@_SOURCES = test/Fortran/elpa2/complex_2stage_banded.F90
validate_complex_2stage_banded@SUFFIX@_LDADD = $(test_program_ldadd)
598
validate_complex_2stage_banded@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
599
600

if WANT_SINGLE_PRECISION_REAL
601
602
603
604
noinst_PROGRAMS += validate_single_real_2stage_banded@SUFFIX@
check_SCRIPTS += validate_single_real_2stage_banded@SUFFIX@_default.sh
validate_single_real_2stage_banded@SUFFIX@_SOURCES = test/Fortran/elpa2/single_real_2stage_banded.F90
validate_single_real_2stage_banded@SUFFIX@_LDADD = $(test_program_ldadd)
605
validate_single_real_2stage_banded@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
606
607
608
endif

if WANT_SINGLE_PRECISION_COMPLEX
609
610
611
612
noinst_PROGRAMS += validate_single_complex_2stage_banded@SUFFIX@
check_SCRIPTS += validate_single_complex_2stage_banded@SUFFIX@_default.sh
validate_single_complex_2stage_banded@SUFFIX@_SOURCES = test/Fortran/elpa2/single_complex_2stage_banded.F90
validate_single_complex_2stage_banded@SUFFIX@_LDADD = $(test_program_ldadd)
613
validate_single_complex_2stage_banded@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) $(FC_MODINC)test_modules $(FC_MODINC)modules $(FC_MODINC)private_modules
614
615
endif

616
617
# python wrapper
pyelpadir = $(pythondir)/pyelpa
618
if WITH_PYTHON
619
pyelpa_PYTHON = python/pyelpa/__init__.py python/pyelpa/distributedmatrix.py
620
pyelpa_LTLIBRARIES = wrapper.la
621
622
623
624
else
pyelpa_PYTHON =
pyelpa_LTLIBRARIES =
endif
625
nodist_wrapper_la_SOURCES = python/pyelpa/wrapper.c
626
627
wrapper_la_LDFLAGS = -module -avoid-version -shared $(AM_LDFLAGS)
wrapper_la_LIBADD = libelpa@SUFFIX@.la
628
wrapper_la_CFLAGS = $(PYTHON_INCLUDE) $(NUMPY_INCLUDE) $(AM_CFLAGS)
629

630
python/pyelpa/wrapper.c: python/pyelpa/wrapper.pyx
631
	cython $< -o $@
632
# test scripts
633
TASKS ?= 2
634
if WITH_MPI
635
  wrapper=$(MPI_BINARY) -n $${TASKS:-$(TASKS)}
636
else
637
  wrapper=
638
endif
639
TESTS = $(check_SCRIPTS)
640
641
642
643
644
645
%_extended.sh: %
	@echo "#!/bin/bash" > $@
	@echo 'if [ "$$CHECK_LEVEL" = "extended" ] ; then $(wrapper) ./$^ $$TEST_FLAGS ; else exit 77; fi' >> $@
	@chmod +x $@

%_default.sh: %
646
	@echo "#!/bin/bash" > $@
647
	@echo '$(wrapper)' ./$^ '$$TEST_FLAGS' >> $@
648
	@chmod +x $@
649

650
651
652
653
654
655
if WITH_PYTHON_TESTS
check_SCRIPTS += test_python.sh
endif

test_python.sh:
	@echo '#!/bin/bash' > $@
656
# this is kind of hacky... is there a better way to get wrapper.so?
657
658
659
660
	@echo 'export PYTHONPATH=./python-copy:$$PYTHONPATH' >> $@
	@echo 'cp -r $(abs_top_srcdir)/python python-copy || exit 1' >> $@
	@echo 'chmod u+rwX -R python-copy || exit 1' >> $@
	@echo 'cp .libs/wrapper.so python-copy/pyelpa/ || exit 1' >> $@
661
# the dlopen flags are needed for MKL to work properly...
662
# only in os from python 3.3 on
663
	@echo "$(wrapper) $(PYTHON) -c 'import sys, os; sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL); import pytest; sys.exit(pytest.main([\"./python-copy\", \"-p\", \"no:cacheprovider\"]))'" >> $@
Sebastian Ohlmann's avatar
Sebastian Ohlmann committed
664
	@echo 'exit_code=$$?' >> $@
665
	@echo 'rm -rf python-copy || exit 1' >> $@
Sebastian Ohlmann's avatar
Sebastian Ohlmann committed
666
	@echo 'exit $$exit_code' >> $@
667
668
	@chmod +x $@

669
670
include doxygen.am

671
CLEANFILES = \
Andreas Marek's avatar
Andreas Marek committed
672
673
  elpa_generated.h \
  elpa_generated_c_api.h \
Andreas Marek's avatar
Andreas Marek committed
674
  elpa1_test* \
675
  elpa2_test*\
Andreas Marek's avatar
Andreas Marek committed
676
677
  elpa2_real* \
  elpa1_real* \
678
  elpa*.sh \
679
  test*.sh \
Andreas Marek's avatar
Andreas Marek committed
680
681
682
683
  single_real* \
  single_complex* \
  real* \
  complex* \
684
  double_instance* \
685
  *.i \
Sebastian Ohlmann's avatar
Sebastian Ohlmann committed
686
687
  python/pyelpa/wrapper.c \
  check_python.sh
688
689

clean-local:
690
	-rm -rf modules/* private_modules/* test_modules/* .fortran_dependencies/*
691
	-rm -rf validate_*.sh
Andreas Marek's avatar
Andreas Marek committed
692
693
694
695
696
	-rm -rf real_2stage*.sh
	-rm -rf complex_2stage*.sh
	-rm -rf single_complex_2stage*.sh
	-rm -rf single_real_2stage*.sh
	-rm -rf double_instance_onenode*.sh
697
	-rm -rf $(generated_headers)
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
698
699

distclean-local:
Andreas Marek's avatar
Andreas Marek committed
700
701
702
703
	-rm -rf ./m4
	-rm -rf ./src
	-rm -rf ./test
	-rm -rf ./modules
Andreas Marek's avatar
Andreas Marek committed
704
705
706
	-rm -rf ./private_modules
	-rm -rf ./test_modules
	-rm -rf ./.fortran-dependencies
Andreas Marek's avatar
Andreas Marek committed
707
	-rm -rf .fortran_dependencies
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
708
	-rm config-f90.h
709
	-rm -rf ./test/.deps
Andreas Marek's avatar
Andreas Marek committed
710
	-rm -rf elpa/elpa_generated_c_api.h
711

712
EXTRA_DIST = \
713
  elpa.spec \
714
  elpa/elpa.h \
715
  elpa/elpa_generic.h \
716
  fdep/fortran_dependencies.mk \
717
  fdep/fortran_dependencies.pl \
718
  manual_cpp \
719
  nvcc_wrap \
Andreas Marek's avatar
Andreas Marek committed
720
  remove_xcompiler \
Andreas Marek's avatar
Andreas Marek committed
721
722
  src/helpers/fortran_blas_interfaces.F90 \
  src/helpers/fortran_scalapack_interfaces.F90 \
723
  src/GPU/cuUtils_template.cu \
Andreas Marek's avatar
Andreas Marek committed
724
  src/elpa_api_math_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
725
  src/elpa_impl_math_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
726
  src/helpers/elpa_redistribute_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
727
  src/elpa_impl_generalized_transform_template.F90 \
728
  src/elpa1/elpa1_compute_template.F90 \
729
  src/solve_tridi/global_product_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
730
  src/solve_tridi/global_gather_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
731
  src/solve_tridi/resort_ev_template.F90 \
732
733
734
735
736
737
738
739
740
  src/solve_tridi/transform_columns_template.F90 \
  src/solve_tridi/check_monotony_template.F90 \
  src/solve_tridi/add_tmp_template.F90 \
  src/elpa1/v_add_s_template.F90 \
  src/elpa1/solve_secular_equation_template.F90 \
  src/elpa1/distribute_global_column_template.F90 \
  src/solve_tridi/merge_systems_template.F90 \
  src/solve_tridi/merge_recursive_template.F90 \
  src/solve_tridi/solve_tridi_template.F90 \
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
  src/elpa1/elpa1_template.F90 \
  src/elpa1/elpa1_tools_template.F90 \
  src/elpa1/elpa1_trans_ev_template.F90 \
  src/elpa1/elpa1_tridiag_template.F90 \
  src/elpa1/elpa_cholesky_template.F90 \
  src/elpa1/elpa_invert_trm.F90 \
  src/elpa1/elpa_multiply_a_b.F90 \
  src/elpa1/elpa_reduce_add_vectors.F90 \
  src/elpa1/elpa_solve_tridi_impl_public.F90 \
  src/elpa1/elpa_transpose_vectors.F90 \
  src/elpa2/compute_hh_trafo.F90 \
  src/elpa2/elpa2_bandred_template.F90 \
  src/elpa2/elpa2_compute_complex_template.F90 \
  src/elpa2/elpa2_compute_real_template.F90 \
  src/elpa2/elpa2_herm_matrix_allreduce_complex_template.F90 \
  src/elpa2/elpa2_symm_matrix_allreduce_real_template.F90 \
  src/elpa2/elpa2_template.F90 \
  src/elpa2/elpa2_trans_ev_band_to_full_template.F90 \
  src/elpa2/elpa2_trans_ev_tridi_to_band_template.F90 \
  src/elpa2/elpa2_tridiag_band_template.F90 \
761
  src/elpa2/kernels/complex_128bit_256bit_512bit_BLOCK_template.c \
762
  src/elpa2/kernels/complex_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
763
  src/elpa2/kernels/real_128bit_256bit_512bit_BLOCK_template.c \
764
765
  src/elpa2/kernels/real_template.F90 \
  src/elpa2/kernels/simple_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
766
  src/elpa2/kernels/simple_block4_template.F90 \
767
  src/elpa2/kernels/simple_block6_template.F90 \
768
769
770
771
772
773
774
  src/elpa2/pack_unpack_cpu.F90 \
  src/elpa2/pack_unpack_gpu.F90 \
  src/elpa2/qr/elpa_pdgeqrf_template.F90 \
  src/elpa2/qr/elpa_pdlarfb_template.F90 \
  src/elpa2/qr/elpa_qrkernels_template.F90 \
  src/elpa2/qr/qr_utils_template.F90 \
  src/elpa2/redist_band.F90 \
775
  src/elpa_generalized/cannon_forw_template.c \
776
  src/elpa_generalized/cannon_back_template.c \
777
  src/elpa_index.h \
778
  src/fortran_constants.h \
779
780
  src/general/map_global_to_local.F90 \
  src/general/precision_macros.h \
781
  src/general/precision_typedefs.h \
782
  src/general/precision_kinds.F90 \
783
  test/shared/test_precision_kinds.F90 \
784
785
  src/general/prow_pcol.F90 \
  src/general/sanity.F90 \
786
  src/general/error_checking.inc \
787
788
  src/general/elpa_ssr2_template.F90 \
  src/general/elpa_ssmv_template.F90 \
789
790
791
792
  test/Fortran/assert.h \
  test/Fortran/elpa_print_headers.F90 \
  test/shared/test_check_correctness_template.F90 \
  test/shared/test_prepare_matrix_template.F90 \
Pavel Kus's avatar
Pavel Kus committed
793
  test/shared/test_analytic_template.F90 \
794
  test/shared/test_scalapack_template.F90 \
Andreas Marek's avatar
Andreas Marek committed
795
796
797
798
799
800
  test_project_1stage/Makefile.am \
  test_project_1stage/autogen.sh \
  test_project_1stage/configure.ac \
  test_project_1stage/fdep \
  test_project_1stage/m4 \
  test_project_1stage/src/test_real.F90 \
801
802
803
804
805
  test_project_2stage/Makefile.am \
  test_project_2stage/autogen.sh \
  test_project_2stage/configure.ac \
  test_project_2stage/fdep \
  test_project_2stage/m4 \
Pavel Kus's avatar
Pavel Kus committed
806
807
808
809
810
811
812
  test_project_2stage/src/test_real2.F90 \
  test_project_C/Makefile.am \
  test_project_C/autogen.sh \
  test_project_C/configure.ac \
  test_project_C/fdep \
  test_project_C/m4 \
  test_project_C/src/test_real.c \
Andreas Marek's avatar
Andreas Marek committed
813
  test_project_C/src/test_blacs_infrastructure.F90
814

Pavel Kus's avatar
Pavel Kus committed
815
816
817
818
819
if WITH_SCALAPACK_TESTS
EXTRA_DIST += \
  test/shared/test_scalapack_template.F90
endif

820
# python wrapper files
821
822
EXTRA_DIST += python/pyelpa/__init__.py \
	      python/pyelpa/distributedmatrix.py \
823
824
825
826
827
	      python/pyelpa/wrapper.pyx \
	      python/tests/test_elpa_import.py \
	      python/tests/test_mpi4py.py \
	      python/tests/test_numroc.py \
	      python/tests/test_with_mpi.py
828

829
830
831
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status libtool
832

833

834
@FORTRAN_MODULE_DEPS@
835
836
837
838
839

# Fortran module dependencies only work within each target,
# specify that the test programs need a finished library before
# one can compile them

840
# $1  Object name
841
define require_elpa_lib
842
$1: libelpa@SUFFIX@.la
843
844

endef
845
$(foreach p,$(bin_PROGRAMS) $(noinst_PROGRAMS),$(foreach o,$($p_OBJECTS),$(eval $(call require_elpa_lib,$o))))