Makefile.am 37 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/elpa2_kernels/elpa2_kernels_simple_template.X90 \
56
        src/redist_band.X90
57

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

63

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

77
if WITH_GPU_VERSION
78 79
  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
80 81
endif

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

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

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

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

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

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

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

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

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

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

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

149 150
if WITH_REAL_AVX512_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx512_2hv_double_precision.c
151 152 153
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx512_2hv_single_precision.c
endif
154 155 156
endif


157
if WITH_REAL_SSE_BLOCK4_KERNEL
158
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_4hv_double_precision.c
159
if WANT_SINGLE_PRECISION_REAL
160
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_4hv_single_precision.c
161
endif
162 163
endif

Andreas Marek's avatar
Andreas Marek committed
164
if WITH_REAL_AVX_BLOCK4_KERNEL
165
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_double_precision.c
166
if WANT_SINGLE_PRECISION_REAL
167
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_single_precision.c
168
endif
169 170
else
if WITH_REAL_AVX2_BLOCK4_KERNEL
171
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_double_precision.c
172
if WANT_SINGLE_PRECISION_REAL
173
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_single_precision.c
174
endif
175
endif
176 177
endif

178 179
if WITH_REAL_AVX512_BLOCK4_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx512_4hv_double_precision.c
180 181 182
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx512_4hv_single_precision.c
endif
183 184 185 186
endif



187
if WITH_REAL_SSE_BLOCK6_KERNEL
188
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_6hv_double_precision.c
189
if WANT_SINGLE_PRECISION_REAL
190
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_6hv_single_precision.c
191
endif
192 193
endif

Andreas Marek's avatar
Andreas Marek committed
194
if WITH_REAL_AVX_BLOCK6_KERNEL
195
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_double_precision.c
196
if WANT_SINGLE_PRECISION_REAL
197
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_single_precision.c
198
endif
199 200
else
if WITH_REAL_AVX2_BLOCK6_KERNEL
201
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_double_precision.c
202
if WANT_SINGLE_PRECISION_REAL
203
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_single_precision.c
204
endif
205
endif
206 207
endif

208 209
if WITH_REAL_AVX512_BLOCK6_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx512_6hv_double_precision.c
210 211 212
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx512_6hv_single_precision.c
endif
213 214 215
endif


216
if WITH_COMPLEX_SSE_BLOCK1_KERNEL
217
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_1hv_double_precision.c
218
if WANT_SINGLE_PRECISION_COMPLEX
219
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_1hv_single_precision.c
220
endif
221 222
endif

Andreas Marek's avatar
Andreas Marek committed
223
if WITH_COMPLEX_AVX_BLOCK1_KERNEL
224
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_double_precision.c
225
if WANT_SINGLE_PRECISION_COMPLEX
226
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_single_precision.c
227
endif
228 229
else
if WITH_COMPLEX_AVX2_BLOCK1_KERNEL
230
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_double_precision.c
231
if WANT_SINGLE_PRECISION_COMPLEX
232
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_single_precision.c
233
endif
234
endif
235 236
endif

237 238 239

if WITH_COMPLEX_AVX512_BLOCK1_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx512_1hv_double_precision.c
240 241 242
if WANT_SINGLE_PRECISION_COMPLEX
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx512_1hv_single_precision.c
endif
243 244
endif

245
if WITH_COMPLEX_SSE_BLOCK2_KERNEL
246
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_2hv_double_precision.c
247
if WANT_SINGLE_PRECISION_COMPLEX
248
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_2hv_single_precision.c
249
endif
250 251
endif

Andreas Marek's avatar
Andreas Marek committed
252
if WITH_COMPLEX_AVX_BLOCK2_KERNEL
253
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_double_precision.c
254
if WANT_SINGLE_PRECISION_COMPLEX
255
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_single_precision.c
256
endif
257 258
else
if WITH_COMPLEX_AVX2_BLOCK2_KERNEL
259
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_double_precision.c
260
if WANT_SINGLE_PRECISION_COMPLEX
261
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_single_precision.c
262
endif
263
endif
264 265
endif

266 267
if WITH_COMPLEX_AVX512_BLOCK2_KERNEL
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx512_2hv_double_precision.c
268 269 270
if WANT_SINGLE_PRECISION_COMPLEX
  libelpa@SUFFIX@_private_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx512_2hv_single_precision.c
endif
271 272
endif

273
.cu.lo:
274
	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
275

276 277 278
include generated_headers.am
BUILT_SOURCES = $(generated_headers)

279
# install public Fortran modules files in the include/ dir
280
elpa_includedir = $(includedir)/elpa@SUFFIX@-@PACKAGE_VERSION@
281
nobase_elpa_include_HEADERS = $(wildcard modules/*)
Andreas Marek's avatar
Andreas Marek committed
282
nobase_elpa_include_HEADERS += elpa/elpa.h elpa/elpa_kernel_constants.h elpa/elpa_generated.h
283

Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
284
dist_man_MANS = \
285
           man/solve_evp_real.3 \
286
	   man/solve_evp_real_1stage_double.3 \
Andreas Marek's avatar
Andreas Marek committed
287
	   man/solve_evp_complex.3 \
288 289 290
	   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
291
	   man/get_elpa_row_col_comms.3 \
292
	   man/get_elpa_communicators.3 \
293
	   man/elpa2_print_kernels.1
Andreas Marek's avatar
Andreas Marek committed
294

295 296
if WANT_SINGLE_PRECISION_REAL

297
dist_man_MANS += man/solve_evp_real_1stage_single.3 \
298 299 300 301 302
	    man/solve_evp_real_2stage_single.3
endif

if WANT_SINGLE_PRECISION_COMPLEX

303
dist_man_MANS += man/solve_evp_complex_1stage_single.3 \
304 305 306
	    man/solve_evp_complex_2stage_single.3
endif

307 308
#needed?

309
# other files to distribute
310
filesdir = $(docdir)/examples
311
dist_files_DATA = \
312 313
  test/Fortran/read_real.F90 \
  test/Fortran/test_complex2.F90 \
314
  test/Fortran/test_complex2_default.F90 \
315 316 317
  test/Fortran/test_complex2_api.F90 \
  test/Fortran/test_complex.F90 \
  test/Fortran/test_real2.F90 \
318
  test/Fortran/test_real2_default.F90 \
319 320 321 322 323
  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 \
324
  test/Fortran/test_transpose_multiply_real.F90 \
325
  test/Fortran/test_transpose_multiply_complex.F90 \
326
  test/Fortran/test_cholesky_real.F90 \
327
  test/Fortran/test_invert_trm_real.F90 \
328
  test/Fortran/test_cholesky_complex.F90 \
329
  test/Fortran/test_invert_trm_complex.F90 \
330
  src/elpa2_print_kernels.F90
331

332 333
#end needed

334
dist_doc_DATA = README.md USERS_GUIDE.md INSTALL.md CONTRIBUTING.md LICENSE Changelog COPYING/COPYING COPYING/gpl.txt COPYING/lgpl.txt
335

336 337
# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
338
pkgconfig_DATA = @PKG_CONFIG_FILE@
339

340 341
# programs
bin_PROGRAMS = \
342
  elpa2_print_kernels@SUFFIX@
343 344

noinst_PROGRAMS = \
345
  elpa1_test_real@SUFFIX@ \
346 347
  elpa1_test_complex@SUFFIX@ \
  elpa2_test_real@SUFFIX@ \
348 349 350
  elpa2_test_real_default@SUFFIX@ \
  elpa2_test_real_qr@SUFFIX@ \
  elpa2_test_real_api@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
351
  elpa2_test_complex@SUFFIX@ \
352
  elpa2_test_complex_default@SUFFIX@ \
353 354
  elpa2_test_complex_api@SUFFIX@ \
  elpa1_real_toeplitz@SUFFIX@ \
355
  elpa1_real_transpose_multiply@SUFFIX@ \
356
  elpa1_complex_transpose_multiply@SUFFIX@ \
357
  elpa1_real_cholesky@SUFFIX@ \
358
  elpa1_real_invert_trm@SUFFIX@ \
359
  elpa1_complex_cholesky@SUFFIX@ \
360
  elpa1_complex_invert_trm@SUFFIX@ \
361
  elpa1_test_real_with_c@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
362 363 364 365 366
  elpa1_test_real_c_version@SUFFIX@ \
  elpa1_test_complex_c_version@SUFFIX@ \
  elpa2_test_real_c_version@SUFFIX@ \
  elpa2_test_complex_c_version@SUFFIX@

367 368
if WANT_SINGLE_PRECISION_COMPLEX
noinst_PROGRAMS += \
369 370
  elpa1_test_complex_single_precision@SUFFIX@ \
  elpa2_test_complex_single_precision@SUFFIX@ \
371
  elpa2_test_complex_default_single_precision@SUFFIX@ \
372 373
  elpa1_complex_transpose_multiply_single_precision@SUFFIX@ \
  elpa1_complex_cholesky_single_precision@SUFFIX@ \
374
  elpa1_complex_invert_trm_single_precision@SUFFIX@ \
375
  elpa2_test_complex_api_single_precision@SUFFIX@
376 377 378 379
endif

if WANT_SINGLE_PRECISION_REAL
noinst_PROGRAMS += \
380 381
  elpa1_test_real_single_precision@SUFFIX@ \
  elpa2_test_real_single_precision@SUFFIX@ \
382 383
  elpa2_test_real_default_single_precision@SUFFIX@ \
  elpa2_test_real_qr_single_precision@SUFFIX@ \
384
  elpa2_test_real_api_single_precision@SUFFIX@ \
385 386
  elpa1_real_transpose_multiply_single_precision@SUFFIX@ \
  elpa1_real_cholesky_single_precision@SUFFIX@ \
387
  elpa1_real_invert_trm_single_precision@SUFFIX@ \
388
  elpa1_real_toeplitz_single_precision@SUFFIX@
389 390 391 392
endif

if WITH_GPU_VERSION
noinst_PROGRAMS += \
393 394
  elpa2_test_complex_gpu@SUFFIX@ \
  elpa2_test_real_gpu@SUFFIX@
395 396 397

if WANT_SINGLE_PRECISION_REAL
noinst_PROGRAMS += \
398
  elpa2_test_real_gpu_single_precision@SUFFIX@
399 400 401 402
endif

if WANT_SINGLE_PRECISION_COMPLEX
noinst_PROGRAMS += \
403
  elpa2_test_complex_gpu_single_precision@SUFFIX@
404 405 406 407
endif

endif

Andreas Marek's avatar
Andreas Marek committed
408
build_lib = libelpatest@SUFFIX@.la libelpa@SUFFIX@.la
409 410 411 412 413

# 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 = \
414 415 416 417 418 419 420 421 422
	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
423

424
if HAVE_REDIRECT
425
libelpatest@SUFFIX@_la_SOURCES += \
426 427
	test/shared/redir.c \
	test/shared/redirect.F90
428 429
endif

430
elpa1_test_real_c_version@SUFFIX@_SOURCES = test/C/elpa1_test_real_c_version.c
431
elpa1_test_real_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
432
elpa1_test_real_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
433
EXTRA_elpa1_test_real_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
434

435
elpa1_test_real_with_c@SUFFIX@_SOURCES = test/Fortran/test_real_with_c.F90
436
elpa1_test_real_with_c@SUFFIX@_LDADD = $(build_lib)
437
elpa1_test_real_with_c@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
438
EXTRA_elpa1_test_real_with_c@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
439

440
elpa1_test_complex_c_version@SUFFIX@_SOURCES = test/C/elpa1_test_complex_c_version.c
441
elpa1_test_complex_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
442
elpa1_test_complex_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
443
EXTRA_elpa1_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
444

445
elpa2_test_real_c_version@SUFFIX@_SOURCES = test/C/elpa2_test_real_c_version.c
446
elpa2_test_real_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
447
elpa2_test_real_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
448
EXTRA_elpa2_test_real_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
449

450
elpa2_test_complex_c_version@SUFFIX@_SOURCES = test/C/elpa2_test_complex_c_version.c
451
elpa2_test_complex_c_version@SUFFIX@_LDADD = $(build_lib) $(FCLIBS)
452
elpa2_test_complex_c_version@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
453
EXTRA_elpa2_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
454

455
elpa1_test_real@SUFFIX@_SOURCES = test/Fortran/test_real.F90
456
elpa1_test_real@SUFFIX@_LDADD = $(build_lib)
457
elpa1_test_real@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
458
EXTRA_elpa1_test_real@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
459

460 461 462 463
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
464

465 466 467 468 469
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

470 471 472 473
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
474

475 476 477 478 479
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

480 481 482 483 484
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

485 486 487 488 489
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

490 491 492 493 494
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

495
elpa2_test_real@SUFFIX@_SOURCES = test/Fortran/test_real2.F90
496
elpa2_test_real@SUFFIX@_LDADD = $(build_lib)
497
elpa2_test_real@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
498
EXTRA_elpa2_test_real@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
499

500 501 502 503
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
504

505 506 507 508
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
509

510 511 512
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
513
EXTRA_elpa2_test_real_api@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
514

515
elpa1_test_complex@SUFFIX@_SOURCES = test/Fortran/test_complex.F90
516
elpa1_test_complex@SUFFIX@_LDADD = $(build_lib)
517
elpa1_test_complex@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
518
EXTRA_elpa1_test_complex@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
519

520
elpa2_test_complex@SUFFIX@_SOURCES = test/Fortran/test_complex2.F90
521
elpa2_test_complex@SUFFIX@_LDADD = $(build_lib)
522
elpa2_test_complex@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
523
EXTRA_elpa2_test_complex@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
524

525 526 527 528
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
529

530 531 532 533
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
534

535
elpa2_print_kernels@SUFFIX@_SOURCES = src/elpa2_print_kernels.F90
536
elpa2_print_kernels@SUFFIX@_LDADD = $(build_lib)
537
elpa2_print_kernels@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
Andreas Marek's avatar
Andreas Marek committed
538

539
if WANT_SINGLE_PRECISION_REAL
540
elpa1_test_real_single_precision@SUFFIX@_SOURCES = test/Fortran/test_real_single.F90
541
elpa1_test_real_single_precision@SUFFIX@_LDADD = $(build_lib)
542
elpa1_test_real_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
543
EXTRA_elpa1_test_real_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
544

545
elpa2_test_real_single_precision@SUFFIX@_SOURCES = test/Fortran/test_real2_single.F90
546 547
elpa2_test_real_single_precision@SUFFIX@_LDFLAGS = -static
elpa2_test_real_single_precision@SUFFIX@_LDADD = $(build_lib)
548
elpa2_test_real_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
549
EXTRA_elpa2_test_real_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
550

551
elpa1_real_toeplitz_single_precision@SUFFIX@_SOURCES = test/Fortran/test_toeplitz_single.F90
552 553 554 555
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

556 557 558 559 560 561 562 563 564 565
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

566 567 568 569 570
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

571 572 573 574 575
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
576

577 578 579 580 581
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
582

583 584 585 586
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
587 588 589
endif

if WANT_SINGLE_PRECISION_COMPLEX
590
elpa1_test_complex_single_precision@SUFFIX@_SOURCES = test/Fortran/test_complex_single.F90
591
elpa1_test_complex_single_precision@SUFFIX@_LDADD = $(build_lib)
592
elpa1_test_complex_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
593
EXTRA_elpa1_test_complex_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
594

595
elpa2_test_complex_single_precision@SUFFIX@_SOURCES = test/Fortran/test_complex2_single.F90
596
elpa2_test_complex_single_precision@SUFFIX@_LDADD = $(build_lib)
597
elpa2_test_complex_single_precision@SUFFIX@_FCFLAGS = $(AM_FCFLAGS) @FC_MODOUT@private_modules @FC_MODINC@private_modules
598
EXTRA_elpa2_test_complex_single_precision@SUFFIX@_DEPENDENCIES = test/Fortran/elpa_print_headers.X90
599

600 601 602 603 604
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
605

606 607 608 609
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
610

611 612 613 614
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
615

616 617 618 619 620
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

621 622 623 624
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
625 626 627
endif

if WITH_GPU_VERSION
628 629 630 631
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
632

633 634 635 636
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
637 638

if WANT_SINGLE_PRECISION_REAL
639 640 641 642
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
643 644 645
endif

if WANT_SINGLE_PRECISION_COMPLEX
646 647 648 649
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
650 651 652
endif

endif
653
#  elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh
654

655
check_SCRIPTS = \
656 657
  elpa1_test_real@SUFFIX@.sh \
  elpa2_test_real@SUFFIX@.sh \
658
  elpa2_test_real_default@SUFFIX@.sh \
659 660
  elpa1_test_complex@SUFFIX@.sh \
  elpa2_test_complex@SUFFIX@.sh \
661 662 663 664 665
  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 \
666
  elpa1_test_real_with_c@SUFFIX@.sh \
667
  elpa1_real_cholesky@SUFFIX@.sh \
668
  elpa1_real_invert_trm@SUFFIX@.sh \
669
  elpa1_real_transpose_multiply@SUFFIX@.sh \
670
  elpa1_complex_cholesky@SUFFIX@.sh \
671
  elpa1_complex_invert_trm@SUFFIX@.sh \
672
  elpa1_complex_transpose_multiply@SUFFIX@.sh \
673
  elpa2_print_kernels@SUFFIX@ \
674 675 676 677
  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
678

679 680
if WANT_SINGLE_PRECISION_REAL
check_SCRIPTS += \
681 682
  elpa1_test_real_single_precision@SUFFIX@.sh \
  elpa2_test_real_single_precision@SUFFIX@.sh \
683 684
  elpa2_test_real_default_single_precision@SUFFIX@.sh \
  elpa2_test_real_qr_single_precision@SUFFIX@.sh \
685
  elpa1_real_cholesky_single_precision@SUFFIX@.sh \
686
  elpa1_real_invert_trm_single_precision@SUFFIX@.sh \
687
  elpa1_real_transpose_multiply_single_precision@SUFFIX@.sh \
688
  elpa2_test_real_api_single_precision@SUFFIX@.sh
689 690 691 692
endif

if WANT_SINGLE_PRECISION_COMPLEX
check_SCRIPTS += \
693 694
  elpa1_test_complex_single_precision@SUFFIX@.sh \
  elpa2_test_complex_single_precision@SUFFIX@.sh \
695
  elpa2_test_complex_default_single_precision@SUFFIX@.sh \
696
  elpa1_complex_cholesky_single_precision@SUFFIX@.sh \
697
  elpa1_complex_invert_trm_single_precision@SUFFIX@.sh \
698
  elpa1_complex_transpose_multiply_single_precision@SUFFIX@.sh \
699
  elpa2_test_complex_api_single_precision@SUFFIX@.sh
700 701 702 703
endif

if WITH_GPU_VERSION
check_SCRIPTS += \
Andreas Marek's avatar
Andreas Marek committed
704 705
  elpa2_test_real_gpu@SUFFIX@.sh \
  elpa2_test_complex_gpu@SUFFIX@.sh
706 707
if WANT_SINGLE_PRECISION_REAL
check_SCRIPTS += \
Andreas Marek's avatar
Andreas Marek committed
708
  elpa2_test_real_gpu_single_precision@SUFFIX@.sh
709 710 711
endif
if WANT_SINGLE_PRECISION_COMPLEX
check_SCRIPTS += \
Andreas Marek's avatar
Andreas Marek committed
712
  elpa2_test_complex_gpu_single_precision@SUFFIX@.sh
713 714 715 716
endif

endif

717
# test scripts
718
MPIEXEC ?= $(MPI_BINARY) -n 2
719
if WITH_MPI
720
  wrapper=$(MPIEXEC)
721
else
722
  wrapper=
723
endif
724 725
TESTS = $(check_SCRIPTS)
%.sh: %
726 727
	@echo $(wrapper) ./$^ '$$TEST_FLAGS' > $@
	@chmod +x $@
728

729
# Preprocessed files (just used for manual inspection)
730 731
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
732

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

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

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