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

3
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
4

5
AM_FCFLAGS = $(SCALAPACK_FCFLAGS) @FC_MODINC@modules
6
AM_LDFLAGS = $(SCALAPACK_LDFLAGS)
7
8
9

# libelpa

10
11
# parts with public interface
noinst_LTLIBRARIES = libelpa@SUFFIX@_public.la
12
libelpa@SUFFIX@_public_la_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@modules @FC_MODINC@private_modules
13
14
15
libelpa@SUFFIX@_public_la_SOURCES = \
        src/elpa1.F90 \
        src/elpa2.F90 \
16
	src/elpa1_auxiliary.F90 \
17
18
19
20
21
        src/elpa2_utilities.F90 \
        src/elpa_utilities.F90

# internal parts
noinst_LTLIBRARIES += libelpa@SUFFIX@_private.la
22
libelpa@SUFFIX@_private_la_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
23
libelpa@SUFFIX@_private_la_SOURCES = \
24
        src/mod_precision.F90 \
25
26
27
28
29
30
31
        src/mod_mpi.F90 \
        src/mod_mpi_stubs.F90 \
        src/mod_pack_unpack_real.F90 \
        src/mod_compute_hh_trafo_real.F90 \
        src/mod_compute_hh_trafo_complex.F90 \
        src/mod_pack_unpack_complex.F90 \
        src/aligned_mem.F90 \
32
        src/elpa1_compute_private.F90 \
33
        src/elpa2_compute.F90 \
34
35
        src/elpa2_kernels/mod_fortran_interfaces.F90 \
        src/elpa2_kernels/mod_single_hh_trafo_real.F90 \
36
        src/elpa_c_interface.F90 \
37
38
39
40
        src/check_for_gpu.F90 \
        src/mod_cuda.F90 \
        src/interface_c_kernel.F90 \
        src/mod_pack_unpack_real_gpu.F90 \
41
        src/elpa_qr/qr_utils.F90 \
42
        src/elpa_qr/elpa_qrkernels.F90 \
43
44
45
        src/elpa_qr/elpa_pdlarfb.F90 \
        src/elpa_qr/elpa_pdgeqrf.F90

46
EXTRA_libelpa@SUFFIX@_private_la_DEPENDENCIES = \
47
48
        src/elpa_reduce_add_vectors.X90 \
        src/elpa_transpose_vectors.X90 \
49
50
51
52
        src/elpa1_compute_complex_template.X90 \
        src/elpa1_compute_real_template.X90 \
        src/elpa2_compute_real_template.X90 \
        src/elpa2_compute_complex_template.X90 \
53
	src/elpa2_kernels/elpa2_kernels_real_template.X90 \
54
	src/elpa2_kernels/elpa2_kernels_complex_template.X90 \
55
        src/redist_band.X90
56

57
lib_LTLIBRARIES = libelpa@SUFFIX@.la
58
libelpa@SUFFIX@_la_LINK = $(FCLINK) $(AM_LDFLAGS) -version-info $(ELPA_SO_VERSION)
59
60
libelpa@SUFFIX@_la_LIBADD = libelpa@SUFFIX@_public.la libelpa@SUFFIX@_private.la
libelpa@SUFFIX@_la_SOURCES =
61

62

63
if HAVE_DETAILED_TIMINGS
64
  libelpa@SUFFIX@_private_la_SOURCES += \
65
66
67
68
69
70
71
72
73
        src/timer.F90 \
        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
74
75
endif

76
if WITH_GPU_VERSION
77
78
  libelpa@SUFFIX@_private_la_SOURCES +=  src/cudaFunctions.cu src/cuUtils.cu src/ev_tridi_band_gpu_c_v2.cu
  EXTRA_libelpa@SUFFIX@_private_la_DEPENDENCIES +=   src/ev_tridi_band_gpu_c_v2_complex_template.Xcu src/ev_tridi_band_gpu_c_v2_real_template.Xcu
79
80
endif

81
if !WITH_MPI
82
  libelpa@SUFFIX@_private_la_SOURCES += src/mod_time_c.F90
83
if !HAVE_DETAILED_TIMINGS
84
  libelpa@SUFFIX@_private_la_SOURCES += src/ftimings/time.c
85
86
87
endif
endif

Andreas Marek's avatar
Andreas Marek committed
88
if WITH_REAL_GENERIC_KERNEL
89
  libelpa@SUFFIX@_private_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_real.F90
90
91
endif

Andreas Marek's avatar
Andreas Marek committed
92
if WITH_COMPLEX_GENERIC_KERNEL
93
  libelpa@SUFFIX@_private_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_complex.F90
94
95
endif

Andreas Marek's avatar
Andreas Marek committed
96
if WITH_REAL_GENERIC_SIMPLE_KERNEL
97
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_simple.F90
98
99
endif

Andreas Marek's avatar
Andreas Marek committed
100
if WITH_COMPLEX_GENERIC_SIMPLE_KERNEL
101
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_simple.F90
102
103
endif

Andreas Marek's avatar
Andreas Marek committed
104
if WITH_REAL_BGP_KERNEL
105
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgp.f90
106
107
endif

Andreas Marek's avatar
Andreas Marek committed
108
if WITH_REAL_BGQ_KERNEL
109
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgq.f90
110
111
endif

112
if WITH_REAL_SSE_ASSEMBLY_KERNEL
113
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64_double_precision.s
114
if WANT_SINGLE_PRECISION_REAL
115
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64_single_precision.s
116
endif
117

Andreas Marek's avatar
Andreas Marek committed
118
else
119
if WITH_COMPLEX_SSE_ASSEMBLY_KERNEL
120
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64_double_precision.s
121
if WANT_SINGLE_PRECISION_COMPLEX
122
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64_single_precision.s
123
endif
124
125
endif
endif
Andreas Marek's avatar
Andreas Marek committed
126

127
if WITH_REAL_SSE_BLOCK2_KERNEL
128
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_2hv_double_precision.c
129
if WANT_SINGLE_PRECISION_REAL
130
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_2hv_single_precision.c
131
endif
132
133
endif

Andreas Marek's avatar
Andreas Marek committed
134
if WITH_REAL_AVX_BLOCK2_KERNEL
135
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_2hv_double_precision.c
136
if WANT_SINGLE_PRECISION_REAL
137
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_2hv_single_precision.c
138
endif
139
140
else
if WITH_REAL_AVX2_BLOCK2_KERNEL
141
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_2hv_double_precision.c
142
if WANT_SINGLE_PRECISION_REAL
143
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_2hv_single_precision.c
144
endif
145
endif
146
147
endif

148
if WITH_REAL_SSE_BLOCK4_KERNEL
149
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_4hv_double_precision.c
150
if WANT_SINGLE_PRECISION_REAL
151
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_4hv_single_precision.c
152
endif
153
154
endif

Andreas Marek's avatar
Andreas Marek committed
155
if WITH_REAL_AVX_BLOCK4_KERNEL
156
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_double_precision.c
157
if WANT_SINGLE_PRECISION_REAL
158
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_single_precision.c
159
endif
160
161
else
if WITH_REAL_AVX2_BLOCK4_KERNEL
162
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_double_precision.c
163
if WANT_SINGLE_PRECISION_REAL
164
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_single_precision.c
165
endif
166
endif
167
168
endif

169
if WITH_REAL_SSE_BLOCK6_KERNEL
170
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_6hv_double_precision.c
171
if WANT_SINGLE_PRECISION_REAL
172
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_6hv_single_precision.c
173
endif
174
175
endif

Andreas Marek's avatar
Andreas Marek committed
176
if WITH_REAL_AVX_BLOCK6_KERNEL
177
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_double_precision.c
178
if WANT_SINGLE_PRECISION_REAL
179
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_single_precision.c
180
endif
181
182
else
if WITH_REAL_AVX2_BLOCK6_KERNEL
183
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_double_precision.c
184
if WANT_SINGLE_PRECISION_REAL
185
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_single_precision.c
186
endif
187
endif
188
189
endif

190
if WITH_COMPLEX_SSE_BLOCK1_KERNEL
191
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_1hv_double_precision.c
192
if WANT_SINGLE_PRECISION_COMPLEX
193
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_1hv_single_precision.c
194
endif
195
196
endif

Andreas Marek's avatar
Andreas Marek committed
197
if WITH_COMPLEX_AVX_BLOCK1_KERNEL
198
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_double_precision.c
199
if WANT_SINGLE_PRECISION_COMPLEX
200
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_single_precision.c
201
endif
202
203
else
if WITH_COMPLEX_AVX2_BLOCK1_KERNEL
204
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_double_precision.c
205
if WANT_SINGLE_PRECISION_COMPLEX
206
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_single_precision.c
207
endif
208
endif
209
210
endif

211
if WITH_COMPLEX_SSE_BLOCK2_KERNEL
212
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_2hv_double_precision.c
213
if WANT_SINGLE_PRECISION_COMPLEX
214
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_2hv_single_precision.c
215
endif
216
217
endif

Andreas Marek's avatar
Andreas Marek committed
218
if WITH_COMPLEX_AVX_BLOCK2_KERNEL
219
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_double_precision.c
220
if WANT_SINGLE_PRECISION_COMPLEX
221
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_single_precision.c
222
endif
223
224
else
if WITH_COMPLEX_AVX2_BLOCK2_KERNEL
225
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_double_precision.c
226
if WANT_SINGLE_PRECISION_COMPLEX
227
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_single_precision.c
228
endif
229
endif
230
231
endif

232
.cu.lo:
233
	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
234

235
236
237
include generated_headers.am
BUILT_SOURCES = $(generated_headers)

238
# install public Fortran modules files in the include/ dir
239
elpa_includedir = $(includedir)/elpa@SUFFIX@-@PACKAGE_VERSION@
240
nobase_elpa_include_HEADERS = $(wildcard modules/*)
Andreas Marek's avatar
Andreas Marek committed
241
nobase_elpa_include_HEADERS += elpa/elpa.h elpa/elpa_kernel_constants.h elpa/elpa_generated.h
242

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
243
dist_man_MANS = \
244
           man/solve_evp_real.3 \
245
	   man/solve_evp_real_1stage_double.3 \
Andreas Marek's avatar
Andreas Marek committed
246
	   man/solve_evp_complex.3 \
247
248
249
	   man/solve_evp_complex_1stage_double.3 \
	   man/solve_evp_real_2stage_double.3 \
	   man/solve_evp_complex_2stage_double.3 \
Andreas Marek's avatar
Andreas Marek committed
250
	   man/get_elpa_row_col_comms.3 \
251
	   man/get_elpa_communicators.3 \
252
	   man/elpa2_print_kernels.1
Andreas Marek's avatar
Andreas Marek committed
253

254
255
if WANT_SINGLE_PRECISION_REAL

256
dist_man_MANS += man/solve_evp_real_1stage_single.3 \
257
258
259
260
261
	    man/solve_evp_real_2stage_single.3
endif

if WANT_SINGLE_PRECISION_COMPLEX

262
dist_man_MANS += man/solve_evp_complex_1stage_single.3 \
263
264
265
	    man/solve_evp_complex_2stage_single.3
endif

266
267
#needed?

268
# other files to distribute
269
filesdir = $(docdir)/examples
270
dist_files_DATA = \
271
272
  test/Fortran/read_real.F90 \
  test/Fortran/test_complex2.F90 \
273
  test/Fortran/test_complex2_default.F90 \
274
275
276
  test/Fortran/test_complex2_api.F90 \
  test/Fortran/test_complex.F90 \
  test/Fortran/test_real2.F90 \
277
  test/Fortran/test_real2_default.F90 \
278
279
280
281
282
  test/Fortran/test_real2_qr.F90 \
  test/Fortran/test_real2_api.F90 \
  test/Fortran/test_real.F90 \
  test/Fortran/test_real_with_c.F90 \
  test/Fortran/test_toeplitz.F90 \
283
  test/Fortran/test_transpose_multiply_real.F90 \
284
  test/Fortran/test_transpose_multiply_complex.F90 \
285
  test/Fortran/test_cholesky_real.F90 \
286
  test/Fortran/test_invert_trm_real.F90 \
287
  test/Fortran/test_cholesky_complex.F90 \
288
  test/Fortran/test_invert_trm_complex.F90 \
289
  src/elpa2_print_kernels.F90
290

291
292
#end needed

293
dist_doc_DATA = README.md USERS_GUIDE.md INSTALL.md CONTRIBUTING.md LICENSE Changelog COPYING/COPYING COPYING/gpl.txt COPYING/lgpl.txt
294

295
296
# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
297
pkgconfig_DATA = @PKG_CONFIG_FILE@
298

299
300
# programs
bin_PROGRAMS = \
301
  elpa2_print_kernels@SUFFIX@
302
303

noinst_PROGRAMS = \
304
  elpa1_test_real@SUFFIX@ \
305
306
  elpa1_test_complex@SUFFIX@ \
  elpa2_test_real@SUFFIX@ \
307
308
309
  elpa2_test_real_default@SUFFIX@ \
  elpa2_test_real_qr@SUFFIX@ \
  elpa2_test_real_api@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
310
  elpa2_test_complex@SUFFIX@ \
311
  elpa2_test_complex_default@SUFFIX@ \
312
313
  elpa2_test_complex_api@SUFFIX@ \
  elpa1_real_toeplitz@SUFFIX@ \
314
  elpa1_real_transpose_multiply@SUFFIX@ \
315
  elpa1_complex_transpose_multiply@SUFFIX@ \
316
  elpa1_real_cholesky@SUFFIX@ \
317
  elpa1_real_invert_trm@SUFFIX@ \
318
  elpa1_complex_cholesky@SUFFIX@ \
319
  elpa1_complex_invert_trm@SUFFIX@ \
320
  elpa1_test_real_with_c@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
321
322
323
324
  elpa1_test_real_c_version@SUFFIX@ \
  elpa1_test_complex_c_version@SUFFIX@ \
  elpa2_test_real_c_version@SUFFIX@ \
  elpa2_test_complex_c_version@SUFFIX@
325

326
327
if WANT_SINGLE_PRECISION_COMPLEX
noinst_PROGRAMS += \
328
329
  elpa1_test_complex_single_precision@SUFFIX@ \
  elpa2_test_complex_single_precision@SUFFIX@ \
330
  elpa2_test_complex_default_single_precision@SUFFIX@ \
331
332
  elpa1_complex_transpose_multiply_single_precision@SUFFIX@ \
  elpa1_complex_cholesky_single_precision@SUFFIX@ \
333
  elpa1_complex_invert_trm_single_precision@SUFFIX@ \
334
  elpa2_test_complex_api_single_precision@SUFFIX@
335
336
337
338
endif

if WANT_SINGLE_PRECISION_REAL
noinst_PROGRAMS += \
339
340
  elpa1_test_real_single_precision@SUFFIX@ \
  elpa2_test_real_single_precision@SUFFIX@ \
341
342
  elpa2_test_real_default_single_precision@SUFFIX@ \
  elpa2_test_real_qr_single_precision@SUFFIX@ \
343
  elpa2_test_real_api_single_precision@SUFFIX@ \
344
345
  elpa1_real_transpose_multiply_single_precision@SUFFIX@ \
  elpa1_real_cholesky_single_precision@SUFFIX@ \
346
  elpa1_real_invert_trm_single_precision@SUFFIX@ \
347
  elpa1_real_toeplitz_single_precision@SUFFIX@
348
349
350
351
endif

if WITH_GPU_VERSION
noinst_PROGRAMS += \
352
353
  elpa2_test_complex_gpu@SUFFIX@ \
  elpa2_test_real_gpu@SUFFIX@
354
355
356

if WANT_SINGLE_PRECISION_REAL
noinst_PROGRAMS += \
357
  elpa2_test_real_gpu_single_precision@SUFFIX@
358
359
360
361
endif

if WANT_SINGLE_PRECISION_COMPLEX
noinst_PROGRAMS += \
362
  elpa2_test_complex_gpu_single_precision@SUFFIX@
363
364
365
366
endif

endif

Andreas Marek's avatar
Andreas Marek committed
367
build_lib = libelpatest@SUFFIX@.la libelpa@SUFFIX@.la
368
369
370
371
372

# library with shared sources for the test files
noinst_LTLIBRARIES += libelpatest@SUFFIX@.la
libelpatest@SUFFIX@_la_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
libelpatest@SUFFIX@_la_SOURCES = \
373
374
375
376
377
378
379
380
381
	test/shared/util.F90 \
	test/shared/read_input_parameters.F90  \
	test/shared/check_correctnes.F90 \
	test/shared/setup_mpi.F90 \
	test/shared/blacs_infrastructure.F90 \
	test/shared/prepare_matrix.F90 \
	test/shared/mod_output_types.F90 \
	test/shared/mod_from_c.F90 \
	test/shared/call_elpa1.c
Andreas Marek's avatar
Andreas Marek committed
382

383
if HAVE_REDIRECT
384
libelpatest@SUFFIX@_la_SOURCES += \
385
386
	test/shared/redir.c \
	test/shared/redirect.F90
387
388
endif

389
elpa1_test_real_c_version@SUFFIX@_SOURCES = test/C/elpa1_test_real_c_version.c
390
elpa1_test_real_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
391
elpa1_test_real_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
392
EXTRA_elpa1_test_real_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
393

394
elpa1_test_real_with_c@SUFFIX@_SOURCES = test/Fortran/test_real_with_c.F90
395
elpa1_test_real_with_c@SUFFIX@_LDADD = $(build_lib)
396
elpa1_test_real_with_c@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
397
EXTRA_elpa1_test_real_with_c@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
398

399
elpa1_test_complex_c_version@SUFFIX@_SOURCES = test/C/elpa1_test_complex_c_version.c
400
elpa1_test_complex_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
401
elpa1_test_complex_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
402
EXTRA_elpa1_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
403

404
elpa2_test_real_c_version@SUFFIX@_SOURCES = test/C/elpa2_test_real_c_version.c
405
elpa2_test_real_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
406
elpa2_test_real_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
407
EXTRA_elpa2_test_real_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
408

409
elpa2_test_complex_c_version@SUFFIX@_SOURCES = test/C/elpa2_test_complex_c_version.c
410
elpa2_test_complex_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
411
elpa2_test_complex_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
412
EXTRA_elpa2_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
413

414
elpa1_test_real@SUFFIX@_SOURCES = test/Fortran/test_real.F90
415
elpa1_test_real@SUFFIX@_LDADD = $(build_lib)
416
elpa1_test_real@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
417
EXTRA_elpa1_test_real@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
418

419
420
421
422
elpa1_real_toeplitz@SUFFIX@_SOURCES = test/Fortran/test_toeplitz.F90
elpa1_real_toeplitz@SUFFIX@_LDADD = $(build_lib)
elpa1_real_toeplitz@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_toeplitz@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
423

424
425
426
427
428
elpa1_real_transpose_multiply@SUFFIX@_SOURCES = test/Fortran/test_transpose_multiply_real.F90
elpa1_real_transpose_multiply@SUFFIX@_LDADD = $(build_lib)
elpa1_real_transpose_multiply@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_transpose_multiply@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

429
430
431
432
elpa1_complex_transpose_multiply@SUFFIX@_SOURCES = test/Fortran/test_transpose_multiply_complex.F90
elpa1_complex_transpose_multiply@SUFFIX@_LDADD = $(build_lib)
elpa1_complex_transpose_multiply@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_complex_transpose_multiply@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
433

434
435
436
437
438
elpa1_real_cholesky@SUFFIX@_SOURCES = test/Fortran/test_cholesky_real.F90
elpa1_real_cholesky@SUFFIX@_LDADD = $(build_lib)
elpa1_real_cholesky@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_cholesky@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

439
440
441
442
443
elpa1_real_invert_trm@SUFFIX@_SOURCES = test/Fortran/test_invert_trm_real.F90
elpa1_real_invert_trm@SUFFIX@_LDADD = $(build_lib)
elpa1_real_invert_trm@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_invert_trm@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

444
445
446
447
448
elpa1_complex_cholesky@SUFFIX@_SOURCES = test/Fortran/test_cholesky_complex.F90
elpa1_complex_cholesky@SUFFIX@_LDADD = $(build_lib)
elpa1_complex_cholesky@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_complex_cholesky@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

449
450
451
452
453
elpa1_complex_invert_trm@SUFFIX@_SOURCES = test/Fortran/test_invert_trm_complex.F90
elpa1_complex_invert_trm@SUFFIX@_LDADD = $(build_lib)
elpa1_complex_invert_trm@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_complex_invert_trm@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

454
elpa2_test_real@SUFFIX@_SOURCES = test/Fortran/test_real2.F90
455
elpa2_test_real@SUFFIX@_LDADD = $(build_lib)
456
elpa2_test_real@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
457
EXTRA_elpa2_test_real@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
458

459
460
461
462
elpa2_test_real_default@SUFFIX@_SOURCES = test/Fortran/test_real2_default.F90
elpa2_test_real_default@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_default@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_real_default@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
463

464
465
466
467
elpa2_test_real_qr@SUFFIX@_SOURCES = test/Fortran/test_real2_qr.F90
elpa2_test_real_qr@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_qr@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_real_qr@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
468

469
470
471
elpa2_test_real_api@SUFFIX@_SOURCES = test/Fortran/test_real2_api.F90
elpa2_test_real_api@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_api@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
Andreas Marek's avatar
Typo  
Andreas Marek committed
472
EXTRA_elpa2_test_real_api@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
473

474
elpa1_test_complex@SUFFIX@_SOURCES = test/Fortran/test_complex.F90
475
elpa1_test_complex@SUFFIX@_LDADD = $(build_lib)
476
elpa1_test_complex@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
477
EXTRA_elpa1_test_complex@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
478

479
elpa2_test_complex@SUFFIX@_SOURCES = test/Fortran/test_complex2.F90
480
elpa2_test_complex@SUFFIX@_LDADD = $(build_lib)
481
elpa2_test_complex@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
482
EXTRA_elpa2_test_complex@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
483

484
485
486
487
elpa2_test_complex_default@SUFFIX@_SOURCES = test/Fortran/test_complex2_default.F90
elpa2_test_complex_default@SUFFIX@_LDADD = $(build_lib)
elpa2_test_complex_default@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_complex_default@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
488

489
490
491
492
elpa2_test_complex_api@SUFFIX@_SOURCES = test/Fortran/test_complex2_api.F90
elpa2_test_complex_api@SUFFIX@_LDADD = $(build_lib)
elpa2_test_complex_api@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_complex_api@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
493

494
elpa2_print_kernels@SUFFIX@_SOURCES = src/elpa2_print_kernels.F90
495
elpa2_print_kernels@SUFFIX@_LDADD = $(build_lib)
496
elpa2_print_kernels@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
Andreas Marek's avatar
Andreas Marek committed
497

498
if WANT_SINGLE_PRECISION_REAL
499
elpa1_test_real_single_precision@SUFFIX@_SOURCES = test/Fortran/test_real_single.F90
500
elpa1_test_real_single_precision@SUFFIX@_LDADD = $(build_lib)
501
elpa1_test_real_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
502
EXTRA_elpa1_test_real_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
503

504
elpa2_test_real_single_precision@SUFFIX@_SOURCES = test/Fortran/test_real2_single.F90
505
506
elpa2_test_real_single_precision@SUFFIX@_LDFLAGS = -static
elpa2_test_real_single_precision@SUFFIX@_LDADD = $(build_lib)
507
elpa2_test_real_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
508
EXTRA_elpa2_test_real_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
509

510
elpa1_real_toeplitz_single_precision@SUFFIX@_SOURCES = test/Fortran/test_toeplitz_single.F90
511
512
513
514
elpa1_real_toeplitz_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa1_real_toeplitz_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_toeplitz_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

515
516
517
518
519
520
521
522
523
524
elpa1_real_transpose_multiply_single_precision@SUFFIX@_SOURCES = test/Fortran/test_transpose_multiply_real_single.F90
elpa1_real_transpose_multiply_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa1_real_transpose_multiply_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_transpose_multiply_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

elpa1_real_cholesky_single_precision@SUFFIX@_SOURCES = test/Fortran/test_cholesky_real_single.F90
elpa1_real_cholesky_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa1_real_cholesky_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_cholesky_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

525
526
527
528
529
elpa1_real_invert_trm_single_precision@SUFFIX@_SOURCES = test/Fortran/test_invert_trm_real_single.F90
elpa1_real_invert_trm_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa1_real_invert_trm_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_real_invert_trm_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

530
531
532
533
534
elpa2_test_real_default_single_precision@SUFFIX@_SOURCES = test/Fortran/test_real2_default.F90
elpa2_test_real_default_single_precision@SUFFIX@_LDADD = $(build_lib)
#elpa2_test_real_default_single_precision@SUFFIX@_LDFLAGS = -static
elpa2_test_real_default_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_real_default_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
535

536
537
538
539
540
elpa2_test_real_qr_single_precision@SUFFIX@_SOURCES = \
	        test/Fortran/test_real2_qr_single.F90
elpa2_test_real_qr_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_qr_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_real_qr_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
541

542
543
544
545
elpa2_test_real_api_single_precision@SUFFIX@_SOURCES = test/Fortran/test_real2_api_single.F90
elpa2_test_real_api_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_api_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_real_api_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
546
547
548
endif

if WANT_SINGLE_PRECISION_COMPLEX
549
elpa1_test_complex_single_precision@SUFFIX@_SOURCES = test/Fortran/test_complex_single.F90
550
elpa1_test_complex_single_precision@SUFFIX@_LDADD = $(build_lib)
551
elpa1_test_complex_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
552
EXTRA_elpa1_test_complex_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
553

554
elpa2_test_complex_single_precision@SUFFIX@_SOURCES = test/Fortran/test_complex2_single.F90
555
elpa2_test_complex_single_precision@SUFFIX@_LDADD = $(build_lib)
556
elpa2_test_complex_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
557
EXTRA_elpa2_test_complex_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
558

559
560
561
562
563
elpa2_test_complex_default_single_precision@SUFFIX@_SOURCES = test/Fortran/test_complex2_default_single.F90 $(shared_sources) $(redirect_sources)
elpa2_test_complex_default_single_precision@SUFFIX@_LDADD = $(build_lib)
#elpa2_test_complex_default_single_precision@SUFFIX@_LDFLAGS = -static
elpa2_test_complex_default_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_complex_default_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
564

565
566
567
568
569
570
571
572
573
574
elpa1_complex_transpose_multiply_single_precision@SUFFIX@_SOURCES = test/Fortran/test_transpose_multiply_complex_single.F90
elpa1_complex_transpose_multiply_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa1_complex_transpose_multiply_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_complex_transpose_multiply_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

elpa1_complex_cholesky_single_precision@SUFFIX@_SOURCES = test/Fortran/test_cholesky_complex_single.F90
elpa1_complex_cholesky_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa1_complex_cholesky_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_complex_cholesky_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

575
576
577
578
579
elpa1_complex_invert_trm_single_precision@SUFFIX@_SOURCES = test/Fortran/test_invert_trm_complex_single.F90
elpa1_complex_invert_trm_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa1_complex_invert_trm_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa1_complex_invert_trm_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90

580
581
582
583
elpa2_test_complex_api_single_precision@SUFFIX@_SOURCES = test/Fortran/test_complex2_api_single.F90
elpa2_test_complex_api_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa2_test_complex_api_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_complex_api_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
584
585
586
endif

if WITH_GPU_VERSION
587
588
589
590
elpa2_test_real_gpu@SUFFIX@_SOURCES = test/Fortran/test_real2_gpu.F90
elpa2_test_real_gpu@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_gpu@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_real_gpu@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
591

592
593
594
595
elpa2_test_complex_gpu@SUFFIX@_SOURCES = test/Fortran/test_complex2_gpu.F90
elpa2_test_complex_gpu@SUFFIX@_LDADD = $(build_lib)
elpa2_test_complex_gpu@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_complex_gpu@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
596
597

if WANT_SINGLE_PRECISION_REAL
598
599
600
601
elpa2_test_real_gpu_single_precision@SUFFIX@_SOURCES = test/Fortran/test_real2_gpu_single.F90
elpa2_test_real_gpu_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_gpu_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_real_gpu_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
602
603
604
endif

if WANT_SINGLE_PRECISION_COMPLEX
605
606
607
608
elpa2_test_complex_gpu_single_precision@SUFFIX@_SOURCES = test/Fortran/test_complex2_gpu_single.F90
elpa2_test_complex_gpu_single_precision@SUFFIX@_LDADD = $(build_lib)
elpa2_test_complex_gpu_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
EXTRA_elpa2_test_complex_gpu_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
609
610
611
endif

endif
612
#  elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh
613

614
check_SCRIPTS = \
615
616
  elpa1_test_real@SUFFIX@.sh \
  elpa2_test_real@SUFFIX@.sh \
617
  elpa2_test_real_default@SUFFIX@.sh \
618
619
  elpa1_test_complex@SUFFIX@.sh \
  elpa2_test_complex@SUFFIX@.sh \
620
621
622
623
624
  elpa2_test_real_qr@SUFFIX@.sh \
  elpa2_test_complex_default@SUFFIX@.sh \
  elpa2_test_real_api@SUFFIX@.sh \
  elpa2_test_complex_api@SUFFIX@.sh \
  elpa1_real_toeplitz@SUFFIX@.sh \
625
  elpa1_test_real_with_c@SUFFIX@.sh \
626
  elpa1_real_cholesky@SUFFIX@.sh \
627
  elpa1_real_invert_trm@SUFFIX@.sh \
628
  elpa1_real_transpose_multiply@SUFFIX@.sh \
629
  elpa1_complex_cholesky@SUFFIX@.sh \
630
  elpa1_complex_invert_trm@SUFFIX@.sh \
631
  elpa1_complex_transpose_multiply@SUFFIX@.sh \
632
  elpa2_print_kernels@SUFFIX@ \
633
634
635
636
  elpa1_test_real_c_version@SUFFIX@.sh \
  elpa1_test_complex_c_version@SUFFIX@.sh \
  elpa2_test_real_c_version@SUFFIX@.sh \
  elpa2_test_complex_c_version@SUFFIX@.sh
Andreas Marek's avatar
Andreas Marek committed
637

638
639
if WANT_SINGLE_PRECISION_REAL
check_SCRIPTS += \
640
641
  elpa1_test_real_single_precision@SUFFIX@.sh \
  elpa2_test_real_single_precision@SUFFIX@.sh \
642
643
  elpa2_test_real_default_single_precision@SUFFIX@.sh \
  elpa2_test_real_qr_single_precision@SUFFIX@.sh \
644
  elpa1_real_cholesky_single_precision@SUFFIX@.sh \
645
  elpa1_real_invert_trm_single_precision@SUFFIX@.sh \
646
  elpa1_real_transpose_multiply_single_precision@SUFFIX@.sh \
647
  elpa2_test_real_api_single_precision@SUFFIX@.sh
648
649
650
651
endif

if WANT_SINGLE_PRECISION_COMPLEX
check_SCRIPTS += \
652
653
  elpa1_test_complex_single_precision@SUFFIX@.sh \
  elpa2_test_complex_single_precision@SUFFIX@.sh \
654
  elpa2_test_complex_default_single_precision@SUFFIX@.sh \
655
  elpa1_complex_cholesky_single_precision@SUFFIX@.sh \
656
  elpa1_complex_invert_trm_single_precision@SUFFIX@.sh \
657
  elpa1_complex_transpose_multiply_single_precision@SUFFIX@.sh \
658
  elpa2_test_complex_api_single_precision@SUFFIX@.sh
659
endif
660

661
662
if WITH_GPU_VERSION
check_SCRIPTS += \
Andreas Marek's avatar
Andreas Marek committed
663
664
  elpa2_test_real_gpu@SUFFIX@.sh \
  elpa2_test_complex_gpu@SUFFIX@.sh
665
666
if WANT_SINGLE_PRECISION_REAL
check_SCRIPTS += \
Andreas Marek's avatar
Andreas Marek committed
667
  elpa2_test_real_gpu_single_precision@SUFFIX@.sh
668
669
670
endif
if WANT_SINGLE_PRECISION_COMPLEX
check_SCRIPTS += \
Andreas Marek's avatar
Andreas Marek committed
671
  elpa2_test_complex_gpu_single_precision@SUFFIX@.sh
672
673
674
675
endif

endif

676
# test scripts
677
MPIEXEC ?= $(MPI_BINARY) -n 2
678
if WITH_MPI
679
  wrapper=$(MPIEXEC)
680
else
681
  wrapper=
682
endif
683
684
TESTS = $(check_SCRIPTS)
%.sh: %
685
686
	@echo $(wrapper) ./$^ '$$TEST_FLAGS' > $@
	@chmod +x $@
687

688
# Preprocessed files (just used for manual inspection)
689
690
mod_precision.i: $(top_srcdir)/src/mod_precision.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -I$(top_srcdir)/ -c $(top_srcdir)/src/mod_precision.F90 -o $@
Andreas Marek's avatar
Andreas Marek committed
691

Andreas Marek's avatar
Andreas Marek committed
692
elpa2_utilities.i: $(top_srcdir)/src/elpa2_utilities.F90
693
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -I$(top_srcdir)/ -c $(top_srcdir)/src/elpa2_utilities.F90 -o $@
Andreas Marek's avatar
Andreas Marek committed
694

Andreas Marek's avatar
Andreas Marek committed
695
elpa2.i: $(top_srcdir)/src/elpa2.F90
696
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -I$(top_srcdir)/ -c $(top_srcdir)/src/elpa2.F90 -o $@
697

Andreas Marek's avatar
Andreas Marek committed
698
elpa1.i: $(top_srcdir)/src/elpa1.F90
699
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -I$(top_srcdir)/ -c $(top_srcdir)/src/elpa1.F90 -o $@
700

701
702
703
elpa1_compute.i: $(top_srcdir)/src/elpa1_compute.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -I$(top_srcdir)/ -c $(top_srcdir)/src/elpa1_compute.F90 -o $@

704
705
706
elpa2_compute.i: $(top_srcdir)/src/elpa2_compute.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -I$(top_srcdir)/ -c $(top_srcdir)/src/elpa2_compute.F90 -o $@

707
708
709
elpa2_kernels_real.i: $(top_srcdir)/src/elpa2_kernels/elpa2_kernels_real.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/elpa2_kernels/elpa2_kernels_real.F90 -o $@

710
711
712
mod_compute_hh_trafo_real.i: $(top_srcdir)/src/mod_compute_hh_trafo_real.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/mod_compute_hh_trafo_real.F90 -o $@

713
714
715
mod_compute_hh_trafo_complex.i: $(top_srcdir)/src/mod_compute_hh_trafo_complex.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/mod_compute_hh_trafo_complex.F90 -o $@

716
717
test_real.i: $(top_srcdir)/test/Fortran/test_real1.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/test/Fortran/test_real1.F90 -o $@
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736

blacs_infrastructure.i: $(top_srcdir)/test/shared_sources/blacs_infrastructure.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/test/shared_sources/blacs_infrastructure.F90 -o $@

check_correctnes.i: $(top_srcdir)/test/shared_sources/check_correctnes.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/test/shared_sources/check_correctnes.F90 -o $@

prepare_matrix.i: $(top_srcdir)/test/shared_sources/prepare_matrix.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/test/shared_sources/prepare_matrix.F90 -o $@

read_input_parameters.i: $(top_srcdir)/test/shared_sources/read_input_parameters.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/test/shared_sources/read_input_parameters.F90 -o $@

setup_mpi.i: $(top_srcdir)/test/shared_sources/setup_mpi.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/test/shared_sources/setup_mpi.F90 -o $@

cuUtils.i: $(top_srcdir)/src/cuUtils.cu
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/src/cuUtils.cu -o $@

737
738
include doxygen.am

739
CLEANFILES = \
Andreas Marek's avatar
Andreas Marek committed
740
  elpa-generated.h \
Andreas Marek's avatar
Andreas Marek committed
741
  elpa1_test* \
742
  elpa2_test*\
Andreas Marek's avatar
Andreas Marek committed
743
744
  elpa2_real* \
  elpa1_real* \
Andreas Marek's avatar
Andreas Marek committed
745
  *.sh \
746
  *.i
747
748

clean-local:
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
749
	-rm -rf modules/* private_modules/* .fortran_dependencies/*
750
	-rm -rf $(generated_headers)
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
751
752
753

distclean-local:
	-rm config-f90.h
754
755
756
	-rm -rf ./src/elpa2_kernels/.deps
	-rm -rf ./src/.deps
	-rm -rf ./test/.deps
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
757
	-rmdir ./src/elpa2_kernels/
758
759
	-rmdir ./src
	-rmdir ./test
760
	-rmdir ./m4
761
	-rmdir modules/
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
762
	-rmdir .fortran_dependencies/
763

764
765
766
EXTRA_DIST = \
  fdep/fortran_dependencies.pl \
  fdep/fortran_dependencies.mk \
767
  test/Fortran/elpa_print_headers.X90 \
768
769
  src/elpa_reduce_add_vectors.X90 \
  src/elpa_transpose_vectors.X90 \
770
771
772
773
  src/elpa1_compute_real_template.X90 \
  src/elpa1_compute_complex_template.X90 \
  src/elpa2_compute_real_template.X90 \
  src/elpa2_compute_complex_template.X90 \
774
  src/elpa2_kernels/elpa2_kernels_real_template.X90 \
775
  src/elpa2_kernels/elpa2_kernels_complex_template.X90 \
776
  src/redist_band.X90 \
777
778
779
780
781
  src/elpa_qr/elpa_qrkernels.X90 \
  src/ev_tridi_band_gpu_c_v2_complex_template.Xcu \
  src/ev_tridi_band_gpu_c_v2_real_template.Xcu \
  src/cuUtils_complex_template.Xcu \
  src/cuUtils_real_template.Xcu \
782
  nvcc_wrap \
783
784
785
786
787
788
  test_project/Makefile.am \
  test_project/autogen.sh \
  test_project/configure.ac \
  test_project/fdep \
  test_project/src/test_real.F90 \
  test_project/m4 \
789
  elpa.spec
790