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

3
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
4

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

# libelpa
9
10
lib_LTLIBRARIES = libelpa@SUFFIX@.la
libelpa@SUFFIX@_la_LINK = $(FCLINK) $(AM_LDFLAGS) -version-info $(ELPA_SO_VERSION) -lstdc++
11

12
libelpa@SUFFIX@_la_SOURCES = src/mod_precision.F90 \
13
14
                             src/mod_mpi.F90 \
			     src/mod_mpi_stubs.F90 \
15
			     src/elpa2_kernels/mod_fortran_interfaces.F90 \
16
                             src/elpa_utilities.F90 \
Andreas Marek's avatar
Andreas Marek committed
17
	                     src/elpa1_compute.F90 \
Andreas Marek's avatar
Andreas Marek committed
18
19
	                     src/elpa1.F90 \
			     src/elpa2_utilities.F90 \
20
21
22
			     src/check_for_gpu.F90 \
			     src/mod_cuda.F90 \
			     src/interface_c_kernel.F90 \
23
			     src/mod_pack_unpack_real.F90 \
24
			     src/mod_pack_unpack_real_gpu.F90 \
25
			     src/elpa2_kernels/mod_single_hh_trafo_real.F90 \
26
27
			     src/mod_compute_hh_trafo_real.F90 \
			     src/mod_compute_hh_trafo_complex.F90 \
28
			     src/mod_pack_unpack_complex.F90 \
29
			     src/aligned_mem.F90 \
30
			     src/elpa2_compute.F90 \
Andreas Marek's avatar
Andreas Marek committed
31
32
			     src/elpa2.F90 \
			     src/elpa_c_interface.F90 \
33
                             src/elpa_qr/qr_utils.F90 \
34
                             src/elpa_qr/elpa_qrkernels.F90 \
35
                             src/elpa_qr/elpa_pdlarfb.F90 \
36
                             src/elpa_qr/elpa_pdgeqrf.F90
37
38
39

EXTRA_libelpa@SUFFIX@_la_DEPENDENCIES = src/elpa_reduce_add_vectors.X90 \
					src/elpa_transpose_vectors.X90 \
40
41
42
43
44
					src/redist_band.X90 \
					src/elpa1_compute_complex_template.X90 \
					src/elpa1_compute_real_template.X90 \
					src/elpa2_compute_real_template.X90 \
					src/elpa2_compute_complex_template.X90
45

46
47
48
49
50
51
52
53
54
55
56
57
if HAVE_DETAILED_TIMINGS
  libelpa@SUFFIX@_la_SOURCES += 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
endif

58
if WITH_GPU_VERSION
59
60
  libelpa@SUFFIX@_la_SOURCES +=  src/cudaFunctions.cu src/cuUtils.cu src/ev_tridi_band_gpu_c_v2.cu
  #src/interface_cuda.F90 src/interface_c_kernel.F90 src/ev_tridi_band_gpu_c_v2.cu src/cuUtils.cu
61
  EXTRA_libelpa@SUFFIX@_la_DEPENDENCIES +=   src/ev_tridi_band_gpu_c_v2_complex_template.Xcu src/ev_tridi_band_gpu_c_v2_real_template.Xcu
62
63
endif

64
65
66
67
68
69
70
if !WITH_MPI
  libelpa@SUFFIX@_la_SOURCES += src/mod_time_c.F90
if !HAVE_DETAILED_TIMINGS
  libelpa@SUFFIX@_la_SOURCES += src/ftimings/time.c
endif
endif

Andreas Marek's avatar
Andreas Marek committed
71
if WITH_REAL_GENERIC_KERNEL
72
  libelpa@SUFFIX@_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_real.F90
73
74
endif

Andreas Marek's avatar
Andreas Marek committed
75
if WITH_COMPLEX_GENERIC_KERNEL
76
  libelpa@SUFFIX@_la_SOURCES +=  src/elpa2_kernels/elpa2_kernels_complex.F90
77
78
endif

Andreas Marek's avatar
Andreas Marek committed
79
if WITH_REAL_GENERIC_SIMPLE_KERNEL
80
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_simple.F90
81
82
endif

Andreas Marek's avatar
Andreas Marek committed
83
if WITH_COMPLEX_GENERIC_SIMPLE_KERNEL
84
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_simple.F90
85
86
endif

Andreas Marek's avatar
Andreas Marek committed
87
if WITH_REAL_BGP_KERNEL
88
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgp.f90
89
90
endif

Andreas Marek's avatar
Andreas Marek committed
91
if WITH_REAL_BGQ_KERNEL
92
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_bgq.f90
93
94
endif

95
if WITH_REAL_SSE_ASSEMBLY_KERNEL
96
97
98
99
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64_double_precision.s
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64_single_precision.s
endif
100

Andreas Marek's avatar
Andreas Marek committed
101
else
102
if WITH_COMPLEX_SSE_ASSEMBLY_KERNEL
103
104
105
106
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64_double_precision.s
if WANT_SINGLE_PRECISION_COMPLEX
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_asm_x86_64_single_precision.s
endif
107
108
endif
endif
Andreas Marek's avatar
Andreas Marek committed
109

110
if WITH_REAL_SSE_BLOCK2_KERNEL
111
112
113
114
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_2hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_2hv_single_precision.c
endif
115
116
endif

Andreas Marek's avatar
Andreas Marek committed
117
if WITH_REAL_AVX_BLOCK2_KERNEL
118
119
120
121
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_2hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_2hv_single_precision.c
endif
122
123
endif

124
if WITH_REAL_SSE_BLOCK4_KERNEL
125
126
127
128
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_4hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_4hv_single_precision.c
endif
129
130
endif

Andreas Marek's avatar
Andreas Marek committed
131
if WITH_REAL_AVX_BLOCK4_KERNEL
132
133
134
135
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_4hv_single_precision.c
endif
136
137
endif

138
if WITH_REAL_SSE_BLOCK6_KERNEL
139
140
141
142
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_6hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_sse_6hv_single_precision.c
endif
143
144
endif

Andreas Marek's avatar
Andreas Marek committed
145
if WITH_REAL_AVX_BLOCK6_KERNEL
146
147
148
149
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_double_precision.c
if WANT_SINGLE_PRECISION_REAL
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_real_avx-avx2_6hv_single_precision.c
endif
150
151
endif

152
if WITH_COMPLEX_SSE_BLOCK1_KERNEL
153
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_1hv_double_precision.c
154
if WANT_SINGLE_PRECISION_COMPLEX
155
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_1hv_single_precision.c
156
endif
157
158
endif

Andreas Marek's avatar
Andreas Marek committed
159
if WITH_COMPLEX_AVX_BLOCK1_KERNEL
160
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_double_precision.c
161
if WANT_SINGLE_PRECISION_COMPLEX
162
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_1hv_single_precision.c
163
endif
164
165
endif

166
if WITH_COMPLEX_SSE_BLOCK2_KERNEL
167
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_2hv_double_precision.c
168
if WANT_SINGLE_PRECISION_COMPLEX
169
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_sse_2hv_single_precision.c
170
endif
171
172
endif

Andreas Marek's avatar
Andreas Marek committed
173
if WITH_COMPLEX_AVX_BLOCK2_KERNEL
174
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_double_precision.c
175
if WANT_SINGLE_PRECISION_COMPLEX
176
  libelpa@SUFFIX@_la_SOURCES += src/elpa2_kernels/elpa2_kernels_complex_avx-avx2_2hv_single_precision.c
177
endif
178
179
endif

180
.cu.lo:
181
	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
182

183
# install any .mod files in the include/ dir
184
elpa_includedir = $(includedir)/elpa@SUFFIX@-@PACKAGE_VERSION@
185
nobase_elpa_include_HEADERS = $(wildcard modules/*)
Andreas Marek's avatar
Andreas Marek committed
186
nobase_elpa_include_HEADERS += elpa/elpa.h elpa/elpa_kernel_constants.h elpa/elpa_generated.h
187

Andreas Marek's avatar
Andreas Marek committed
188
man_MANS = man/solve_evp_real.3 \
189
	   man/solve_evp_real_1stage_double.3 \
Andreas Marek's avatar
Andreas Marek committed
190
	   man/solve_evp_complex.3 \
191
192
193
	   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
194
	   man/get_elpa_row_col_comms.3 \
195
	   man/get_elpa_communicators.3 \
196
	   man/elpa2_print_kernels.1
Andreas Marek's avatar
Andreas Marek committed
197

198
199
200
201
202
203
204
205
206
207
208
209
210
if WANT_SINGLE_PRECISION_REAL

man_MANS += man/solve_evp_real_1stage_single.3 \
	    man/solve_evp_real_2stage_single.3
endif

if WANT_SINGLE_PRECISION_COMPLEX

man_MANS += man/solve_evp_complex_1stage_single.3 \
	    man/solve_evp_complex_2stage_single.3
endif


211
# other files to distribute
212
filesdir = $(docdir)/examples
213
dist_files_DATA = \
Andreas Marek's avatar
Andreas Marek committed
214
215
216
217
218
219
220
221
222
223
224
  test/fortran_test_programs/read_real.F90 \
  test/fortran_test_programs/test_complex2.F90 \
  test/fortran_test_programs/test_complex2_default_kernel.F90 \
  test/fortran_test_programs/test_complex2_choose_kernel_with_api.F90 \
  test/fortran_test_programs/test_complex.F90 \
  test/fortran_test_programs/test_real2.F90 \
  test/fortran_test_programs/test_real2_default_kernel.F90 \
  test/fortran_test_programs/test_real2_default_kernel_qr_decomposition.F90 \
  test/fortran_test_programs/test_real2_choose_kernel_with_api.F90 \
  test/fortran_test_programs/test_real.F90 \
  test/fortran_test_programs/test_real_with_c.F90 \
225
  src/elpa2_print_kernels.F90
226

227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
if WANT_SINGLE_PRECISION_COMPLEX
dist_files_DATA += test/fortran_test_programs/test_complex2_single_precision.F90 \
                   test/fortran_test_programs/test_complex2_default_kernel_single_precision.F90 \
                   test/fortran_test_programs/test_complex2_choose_kernel_with_api_single_precision.F90 \
                   test/fortran_test_programs/test_complex_single_precision.F90
endif

if WANT_SINGLE_PRECISION_REAL
dist_files_DATA += test/fortran_test_programs/test_real2_single_precision.F90 \
                   test/fortran_test_programs/test_real2_default_kernel_single_precision.F90 \
                   test/fortran_test_programs/test_real2_default_kernel_qr_decomposition_single_precision.F90 \
                   test/fortran_test_programs/test_real2_choose_kernel_with_api_single_precision.F90 \
                   test/fortran_test_programs/test_real_single_precision.F90
endif

if WITH_GPU_VERSION
dist_files_DATA += test/fortran_test_programs/test_real2_gpu_version.F90 \
                   test/fortran_test_programs/test_complex2_gpu_version.F90

if WANT_SINGLE_PRECISION_REAL
dist_files_DATA += test/fortran_test_programs/test_real2_gpu_version_single_precision.F90
endif

if WANT_SINGLE_PRECISION_COMPLEX
dist_files_DATA += test/fortran_test_programs/test_complex2_gpu_version_single_precision.F90
endif

endif
255
dist_doc_DATA = README.md USERS_GUIDE.md INSTALL.md CONTRIBUTING.md LICENSE Changelog COPYING/COPYING COPYING/gpl.txt COPYING/lgpl.txt
256

257
258
# pkg-config stuff
pkgconfigdir = $(libdir)/pkgconfig
259
pkgconfig_DATA = @PKG_CONFIG_FILE@
260

261
262
# programs
bin_PROGRAMS = \
263
  elpa2_print_kernels@SUFFIX@
264
265

noinst_PROGRAMS = \
266
  elpa1_test_real@SUFFIX@ \
267
268
  elpa1_test_complex@SUFFIX@ \
  elpa2_test_real@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
269
270
271
272
  elpa2_test_real_default_kernel@SUFFIX@ \
  elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@ \
  elpa2_test_real_choose_kernel_with_api@SUFFIX@ \
  elpa2_test_complex@SUFFIX@ \
273
274
275
276
277
278
279
  elpa2_test_complex_default_kernel@SUFFIX@ \
  elpa2_test_complex_choose_kernel_with_api@SUFFIX@

#if WITH_OPENMP
# nothing yet
#endif

280
if !WITH_OPENMP
Andreas Marek's avatar
Andreas Marek committed
281
noinst_PROGRAMS += \
282
  elpa1_test_real_with_c@SUFFIX@ \
Andreas Marek's avatar
Andreas Marek committed
283
284
285
286
287
288
  elpa1_test_real_c_version@SUFFIX@ \
  elpa1_test_complex_c_version@SUFFIX@ \
  elpa2_test_real_c_version@SUFFIX@ \
  elpa2_test_complex_c_version@SUFFIX@
endif

289
290
if WANT_SINGLE_PRECISION_COMPLEX
noinst_PROGRAMS += \
291
292
  elpa1_test_complex_single_precision@SUFFIX@ \
  elpa2_test_complex_single_precision@SUFFIX@ \
293
294
295
296
297
298
  elpa2_test_complex_default_kernel_single_precision@SUFFIX@ \
  elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@
endif

if WANT_SINGLE_PRECISION_REAL
noinst_PROGRAMS += \
299
300
  elpa1_test_real_single_precision@SUFFIX@ \
  elpa2_test_real_single_precision@SUFFIX@ \
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
  elpa2_test_real_default_kernel_single_precision@SUFFIX@ \
  elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@ \
  elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@
endif

if WITH_GPU_VERSION
noinst_PROGRAMS += \
  elpa2_test_complex_gpu_version@SUFFIX@ \
  elpa2_test_real_gpu_version@SUFFIX@

if WANT_SINGLE_PRECISION_REAL
noinst_PROGRAMS += \
  elpa2_test_real_gpu_version_single_precision@SUFFIX@
endif

if WANT_SINGLE_PRECISION_COMPLEX
noinst_PROGRAMS += \
  elpa2_test_complex_gpu_version_single_precision@SUFFIX@
endif

endif

323
build_lib = libelpa@SUFFIX@.la
Andreas Marek's avatar
Andreas Marek committed
324

325
if HAVE_REDIRECT
Andreas Marek's avatar
Andreas Marek committed
326
  redirect_sources = test/shared_sources/redir.c test/shared_sources/redirect.F90
327
328
329
330
else
  redirect_sources =
endif

331
332
333
334
335
shared_sources = test/shared_sources/util.F90 \
		 test/shared_sources/read_input_parameters.F90  \
		 test/shared_sources/check_correctnes.F90 \
		 test/shared_sources/setup_mpi.F90 \
		 test/shared_sources/blacs_infrastructure.F90 \
336
		 test/shared_sources/mod_output_types.F90 \
337
		 test/shared_sources/prepare_matrix.F90
338
339
#test/shared_sources/mod_precision_created.f90: src/mod_precision.f90
#	cp $(top_srcdir)/src/mod_precision.f90 $(top_srcdir)/test/shared_sources/mod_precision_created.f90
Andreas Marek's avatar
Andreas Marek committed
340

Andreas Marek's avatar
Andreas Marek committed
341
if !WITH_OPENMP
Andreas Marek's avatar
Andreas Marek committed
342
elpa1_test_real_c_version@SUFFIX@_SOURCES = test/c_test_programs/elpa1_test_real_c_version.c $(shared_sources) $(redirect_sources)
Andreas Marek's avatar
Andreas Marek committed
343
elpa1_test_real_c_version@SUFFIX@_LDADD = $(build_lib)
344
elpa1_test_real_c_version@SUFFIX@_LINK = $(LINK) $(FCLIBS)
345
EXTRA_elpa1_test_real_c_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
346

347
348
elpa1_test_real_with_c@SUFFIX@_SOURCES = test/fortran_test_programs/test_real_with_c.F90 test/shared_sources/mod_from_c.F90 test/shared_sources/call_elpa1.c $(shared_sources) $(redirect_sources)
elpa1_test_real_with_c@SUFFIX@_LDADD = $(build_lib)
349
EXTRA_elpa1_test_real_with_c@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
350

Andreas Marek's avatar
Andreas Marek committed
351
352
353
elpa1_test_complex_c_version@SUFFIX@_SOURCES = test/c_test_programs/elpa1_test_complex_c_version.c $(shared_sources) $(redirect_sources)
elpa1_test_complex_c_version@SUFFIX@_LDADD = $(build_lib)
elpa1_test_complex_c_version@SUFFIX@_LINK = $(LINK) $(FCLIBS)
354
EXTRA_elpa1_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
355
356
357
358

elpa2_test_real_c_version@SUFFIX@_SOURCES = test/c_test_programs/elpa2_test_real_c_version.c $(shared_sources) $(redirect_sources)
elpa2_test_real_c_version@SUFFIX@_LDADD = $(build_lib)
elpa2_test_real_c_version@SUFFIX@_LINK = $(LINK) $(FCLIBS)
359
EXTRA_elpa2_test_real_c_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
360
361
362
363

elpa2_test_complex_c_version@SUFFIX@_SOURCES = test/c_test_programs/elpa2_test_complex_c_version.c $(shared_sources) $(redirect_sources)
elpa2_test_complex_c_version@SUFFIX@_LDADD = $(build_lib)
elpa2_test_complex_c_version@SUFFIX@_LINK = $(LINK) $(FCLIBS)
364
EXTRA_elpa2_test_complex_c_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
365
endif
Andreas Marek's avatar
Andreas Marek committed
366
367

elpa1_test_real@SUFFIX@_SOURCES = test/fortran_test_programs/test_real.F90 $(shared_sources) $(redirect_sources)
368
elpa1_test_real@SUFFIX@_LDADD = $(build_lib)
369
EXTRA_elpa2_test_real@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
370

371
372
#elpa1_test_complex_with_c@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex_with_c.F90 test/shared_sources/mod_from_c.F90 test/shared_sources/call_elpa1.c $(shared_sources) $(redirect_sources)
#elpa1_test_complex_with_c@SUFFIX@_LDADD = $(build_lib)
373
#EXTRA_elpa1_test_complex_with_c@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
374
375

elpa2_test_real@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2.F90 $(shared_sources) $(redirect_sources)
376
elpa2_test_real@SUFFIX@_LDFLAGS = -static
377
elpa2_test_real@SUFFIX@_LDADD = $(build_lib)
378
EXTRA_elpa2_test_real@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
379

Andreas Marek's avatar
Andreas Marek committed
380
elpa2_test_real_default_kernel@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_default_kernel.F90 $(shared_sources) $(redirect_sources)
381
elpa2_test_real_default_kernel@SUFFIX@_LDADD = $(build_lib)
382
EXTRA_elpa2_test_real_default_kernel@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
383

384
385
elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_default_kernel_qr_decomposition.F90 \
								   $(shared_sources) $(redirect_sources)
386
elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@_LDADD = $(build_lib)
387
EXTRA_elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
388

389
390
elpa2_test_real_choose_kernel_with_api@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_choose_kernel_with_api.F90 \
							 $(shared_sources) $(redirect_sources)
391
elpa2_test_real_choose_kernel_with_api@SUFFIX@_LDADD = $(build_lib)
392
EXTRA_elpa2_test_real_choose_kernel_with_api@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
393

Andreas Marek's avatar
Andreas Marek committed
394
elpa1_test_complex@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex.F90 $(shared_sources) $(redirect_sources)
395
elpa1_test_complex@SUFFIX@_LDADD = $(build_lib)
396
EXTRA_elpa1_test_complex@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
397

Andreas Marek's avatar
Andreas Marek committed
398
elpa2_test_complex@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2.F90 $(shared_sources) $(redirect_sources)
399
elpa2_test_complex@SUFFIX@_LDADD = $(build_lib)
400
EXTRA_elpa2_test_complex@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
401

Andreas Marek's avatar
Andreas Marek committed
402
elpa2_test_complex_default_kernel@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_default_kernel.F90 $(shared_sources) $(redirect_sources)
403
elpa2_test_complex_default_kernel@SUFFIX@_LDADD = $(build_lib)
404
EXTRA_elpa2_test_complex_default_kernel@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
405

406
407
elpa2_test_complex_choose_kernel_with_api@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_choose_kernel_with_api.F90 \
							    $(shared_sources) $(redirect_sources)
408
elpa2_test_complex_choose_kernel_with_api@SUFFIX@_LDADD = $(build_lib)
409
EXTRA_elpa2_test_complex_choose_kernel_with_api@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
Andreas Marek's avatar
Andreas Marek committed
410

411
elpa2_print_kernels@SUFFIX@_SOURCES = src/elpa2_print_kernels.F90 src/mod_precisionF90 $(shared_sources) $(redirect_sources)
412
elpa2_print_kernels@SUFFIX@_LDADD = $(build_lib)
Andreas Marek's avatar
Andreas Marek committed
413

414
415
416
if WANT_SINGLE_PRECISION_REAL
elpa1_test_real_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_real_single_precision.F90 $(shared_sources) $(redirect_sources)
elpa1_test_real_single_precision@SUFFIX@_LDADD = $(build_lib)
417
EXTRA_elpa1_test_real_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
418
419
420
421

elpa2_test_real_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_single_precision.F90 $(shared_sources) $(redirect_sources)
elpa2_test_real_single_precision@SUFFIX@_LDFLAGS = -static
elpa2_test_real_single_precision@SUFFIX@_LDADD = $(build_lib)
422
EXTRA_elpa2_test_real_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
423

424
425
elpa2_test_real_default_kernel_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_default_kernel_single_precision.F90 \
								  $(shared_sources) $(redirect_sources)
426
elpa2_test_real_default_kernel_single_precision@SUFFIX@_LDADD = $(build_lib)
427
#elpa2_test_real_default_kernel_single_precision@SUFFIX@_LDFLAGS = -static
428
EXTRA_elpa2_test_real_default_kernel_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
429

430
431
elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@_SOURCES = \
	        test/fortran_test_programs/test_real2_default_kernel_qr_decomposition_single_precision.F90 $(shared_sources) $(redirect_sources)
432
elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@_LDADD = $(build_lib)
433
EXTRA_elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
434
435
436

elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_choose_kernel_with_api_single_precision.F90 $(shared_sources) $(redirect_sources)
elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@_LDADD = $(build_lib)
437
EXTRA_elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
438
439
440
441
442
endif

if WANT_SINGLE_PRECISION_COMPLEX
elpa1_test_complex_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex_single_precision.F90 $(shared_sources) $(redirect_sources)
elpa1_test_complex_single_precision@SUFFIX@_LDADD = $(build_lib)
443
EXTRA_elpa1_test_complex_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
444
445
446

elpa2_test_complex_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_single_precision.F90 $(shared_sources) $(redirect_sources)
elpa2_test_complex_single_precision@SUFFIX@_LDADD = $(build_lib)
447
EXTRA_elpa2_test_complex_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
448
449
450

elpa2_test_complex_default_kernel_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_default_kernel_single_precision.F90 $(shared_sources) $(redirect_sources)
elpa2_test_complex_default_kernel_single_precision@SUFFIX@_LDADD = $(build_lib)
451
#elpa2_test_complex_default_kernel_single_precision@SUFFIX@_LDFLAGS = -static
452
EXTRA_elpa2_test_complex_default_kernel_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
453
454
455

elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_choose_kernel_with_api_single_precision.F90 $(shared_sources) $(redirect_sources)
elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@_LDADD = $(build_lib)
456
EXTRA_elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
457
458
459
460
461
endif

if WITH_GPU_VERSION
elpa2_test_real_gpu_version@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_gpu_version.F90 $(shared_sources) $(redirect_sources)
elpa2_test_real_gpu_version@SUFFIX@_LDADD = $(build_lib)
462
EXTRA_elpa2_test_real_gpu_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
463
464
465

elpa2_test_complex_gpu_version@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_gpu_version.F90 $(shared_sources) $(redirect_sources)
elpa2_test_complex_gpu_version@SUFFIX@_LDADD = $(build_lib)
466
EXTRA_elpa2_test_complex_gpu_version@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
467
468
469
470

if WANT_SINGLE_PRECISION_REAL
elpa2_test_real_gpu_version_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_real2_gpu_version_single_precision.F90 $(shared_sources) $(redirect_sources)
elpa2_test_real_gpu_version_single_precision@SUFFIX@_LDADD = $(build_lib)
471
EXTRA_elpa2_test_real_gpu_version_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
472
473
474
475
476
endif

if WANT_SINGLE_PRECISION_COMPLEX
elpa2_test_complex_gpu_version_single_precision@SUFFIX@_SOURCES = test/fortran_test_programs/test_complex2_gpu_version_single_precision.F90 $(shared_sources) $(redirect_sources)
elpa2_test_complex_gpu_version_single_precision@SUFFIX@_LDADD = $(build_lib)
477
EXTRA_elpa2_test_complex_gpu_version_single_precision@SUFFIX@_DEPENDENCIES = test/fortran_test_programs/elpa_test_programs_print_headers.X90
478
479
480
481
endif

endif

482
check_SCRIPTS = \
483
484
485
486
487
488
489
490
491
  elpa1_test_real@SUFFIX@.sh \
  elpa2_test_real@SUFFIX@.sh \
  elpa2_test_real_default_kernel@SUFFIX@.sh \
  elpa1_test_complex@SUFFIX@.sh \
  elpa2_test_complex@SUFFIX@.sh \
  elpa2_test_complex_default_kernel@SUFFIX@.sh \
  elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh \
  elpa2_test_real_choose_kernel_with_api@SUFFIX@.sh \
  elpa2_test_complex_choose_kernel_with_api@SUFFIX@.sh \
492
  elpa2_print_kernels@SUFFIX@
493

Andreas Marek's avatar
Andreas Marek committed
494
495
if !WITH_OPENMP
check_SCRIPTS += \
496
  elpa1_test_real_with_c@SUFFIX@.sh \
497
498
499
500
  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
501
502
endif

503
504
if WANT_SINGLE_PRECISION_REAL
check_SCRIPTS += \
505
506
507
508
509
  elpa1_test_real_single_precision@SUFFIX@.sh \
  elpa2_test_real_single_precision@SUFFIX@.sh \
  elpa2_test_real_default_kernel_single_precision@SUFFIX@.sh \
  elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@.sh \
  elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@.sh
510
511
512
513
endif

if WANT_SINGLE_PRECISION_COMPLEX
check_SCRIPTS += \
514
515
516
  elpa1_test_complex_single_precision@SUFFIX@.sh \
  elpa2_test_complex_single_precision@SUFFIX@.sh \
  elpa2_test_complex_default_kernel_single_precision@SUFFIX@.sh
517
518
519
520
endif

if WITH_GPU_VERSION
check_SCRIPTS += \
521
522
  elpa2_test_real_gpu_version@SUFFIX@.sh \
  elpa2_test_complex_gpu_version@SUFFIX@.sh
523
524
if WANT_SINGLE_PRECISION_REAL
check_SCRIPTS += \
525
  elpa2_test_real_gpu_version_single_precision@SUFFIX@.sh
526
527
528
endif
if WANT_SINGLE_PRECISION_COMPLEX
check_SCRIPTS += \
529
  elpa2_test_complex_gpu_version_single_precision@SUFFIX@.sh
530
531
532
533
endif

endif

534
TESTS = $(check_SCRIPTS)
535
if WITH_MPI
536
537
538
elpa1_test_real@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa1_test_real@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real@SUFFIX@.sh
	chmod +x elpa1_test_real@SUFFIX@.sh
539

540
541
542
elpa1_test_real_with_c@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa1_test_real_with_c@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real_with_c@SUFFIX@.sh
	chmod +x elpa1_test_real_with_c@SUFFIX@.sh
Andreas Marek's avatar
Andreas Marek committed
543

544
545
546
elpa2_test_real_c_version@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_c_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_c_version@SUFFIX@.sh
	chmod +x elpa2_test_real_c_version@SUFFIX@.sh
Andreas Marek's avatar
Andreas Marek committed
547

548
549
550
elpa2_test_complex_c_version@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex_c_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_c_version@SUFFIX@.sh
	chmod +x elpa2_test_complex_c_version@SUFFIX@.sh
Andreas Marek's avatar
Andreas Marek committed
551

552
553
554
elpa1_test_real_c_version@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa1_test_real_c_version@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real_c_version@SUFFIX@.sh
	chmod +x elpa1_test_real_c_version@SUFFIX@.sh
Andreas Marek's avatar
Andreas Marek committed
555

556
557
558
elpa1_test_complex_c_version@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa1_test_complex_c_version@SUFFIX@ $$TEST_FLAGS' > elpa1_test_complex_c_version@SUFFIX@.sh
	chmod +x elpa1_test_complex_c_version@SUFFIX@.sh
559

560
561
562
elpa2_test_real@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real@SUFFIX@.sh
	chmod +x elpa2_test_real@SUFFIX@.sh
563

564
565
566
elpa2_test_real_default_kernel@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_default_kernel@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_default_kernel@SUFFIX@.sh
	chmod +x elpa2_test_real_default_kernel@SUFFIX@.sh
Andreas Marek's avatar
Andreas Marek committed
567

568
569
570
elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@' > elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh
	chmod +x elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh
571

572
573
574
elpa2_test_real_choose_kernel_with_api@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_choose_kernel_with_api@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_choose_kernel_with_api@SUFFIX@.sh
	chmod +x elpa2_test_real_choose_kernel_with_api@SUFFIX@.sh
Andreas Marek's avatar
Andreas Marek committed
575

576
577
578
elpa1_test_complex@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa1_test_complex@SUFFIX@ $$TEST_FLAGS' > elpa1_test_complex@SUFFIX@.sh
	chmod +x elpa1_test_complex@SUFFIX@.sh
579

580
581
582
elpa2_test_complex@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex@SUFFIX@.sh
	chmod +x elpa2_test_complex@SUFFIX@.sh
Andreas Marek's avatar
Andreas Marek committed
583

584
585
586
elpa2_test_complex_default_kernel@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex_default_kernel@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_default_kernel@SUFFIX@.sh
	chmod +x elpa2_test_complex_default_kernel@SUFFIX@.sh
Andreas Marek's avatar
Andreas Marek committed
587

588
589
590
elpa2_test_complex_choose_kernel_with_api@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex_choose_kernel_with_api@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_choose_kernel_with_api@SUFFIX@.sh
	chmod +x elpa2_test_complex_choose_kernel_with_api@SUFFIX@.sh
591
592

if WANT_SINGLE_PRECISION_REAL
593
594
595
elpa1_test_real_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa1_test_real_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real_single_precision@SUFFIX@.sh
	chmod +x elpa1_test_real_single_precision@SUFFIX@.sh
596

597
598
599
elpa2_test_real_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_single_precision@SUFFIX@.sh
600

601
602
603
elpa2_test_real_default_kernel_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_default_kernel_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_default_kernel_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_default_kernel_single_precision@SUFFIX@.sh
604

605
606
607
elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@' > elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@.sh
608

609
610
611
elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@.sh
612
613
614
endif

if WANT_SINGLE_PRECISION_COMPLEX
615
616
617
elpa1_test_complex_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa1_test_complex_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa1_test_complex_single_precision@SUFFIX@.sh
	chmod +x elpa1_test_complex_single_precision@SUFFIX@.sh
618

619
620
621
elpa2_test_complex_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_complex_single_precision@SUFFIX@.sh
622

623
624
625
elpa2_test_complex_default_kernel_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex_default_kernel_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_default_kernel_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_complex_default_kernel_single_precision@SUFFIX@.sh
626

627
628
629
elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@.sh
630
631
632
endif

if WITH_GPU_VERSION
633
634
635
elpa2_test_real_gpu_version@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_gpu_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_gpu_version@SUFFIX@.sh
	chmod +x elpa2_test_real_gpu_version@SUFFIX@.sh
636

637
638
639
elpa2_test_complex_gpu_version@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex_gpu_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_gpu_version@SUFFIX@.sh
	chmod +x elpa2_test_complex_gpu_version@SUFFIX@.sh
640
641

if WANT_SINGLE_PRECISION_REAL
642
643
644
elpa2_test_real_gpu_version_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_real_gpu_version_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_gpu_version_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_gpu_version_single_precision@SUFFIX@.sh
645
646
647
endif

if WANT_SINGLE_PRECISION_COMPLEX
648
649
650
elpa2_test_complex_gpu_version_single_precision@SUFFIX@.sh:
	echo 'mpiexec -n 2 ./elpa2_test_complex_gpu_version_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_gpu_version_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_complex_gpu_version_single_precision@SUFFIX@.sh
651
652
653
654
655
656
657
endif
# GPU_VERSION
endif

else
# build tests without mpi support

658
659
660
elpa1_test_real@SUFFIX@.sh:
	echo './elpa1_test_real@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real@SUFFIX@.sh
	chmod +x elpa1_test_real@SUFFIX@.sh
661

662
663
664
elpa1_test_real_with_c@SUFFIX@.sh:
	echo './elpa1_test_real_with_c@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real_with_c@SUFFIX@.sh
	chmod +x elpa1_test_real_with_c@SUFFIX@.sh
665

666
667
668
elpa2_test_real_c_version@SUFFIX@.sh:
	echo './elpa2_test_real_c_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_c_version@SUFFIX@.sh
	chmod +x elpa2_test_real_c_version@SUFFIX@.sh
669

670
671
672
elpa2_test_complex_c_version@SUFFIX@.sh:
	echo './elpa2_test_complex_c_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_c_version@SUFFIX@.sh
	chmod +x elpa2_test_complex_c_version@SUFFIX@.sh
673

674
675
676
elpa1_test_real_c_version@SUFFIX@.sh:
	echo './elpa1_test_real_c_version@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real_c_version@SUFFIX@.sh
	chmod +x elpa1_test_real_c_version@SUFFIX@.sh
677

678
679
680
elpa1_test_complex_c_version@SUFFIX@.sh:
	echo './elpa1_test_complex_c_version@SUFFIX@ $$TEST_FLAGS' > elpa1_test_complex_c_version@SUFFIX@.sh
	chmod +x elpa1_test_complex_c_version@SUFFIX@.sh
681

682
683
684
elpa2_test_real@SUFFIX@.sh:
	echo './elpa2_test_real@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real@SUFFIX@.sh
	chmod +x elpa2_test_real@SUFFIX@.sh
685

686
687
688
elpa2_test_real_default_kernel@SUFFIX@.sh:
	echo './elpa2_test_real_default_kernel@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_default_kernel@SUFFIX@.sh
	chmod +x elpa2_test_real_default_kernel@SUFFIX@.sh
689

690
691
692
elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh:
	echo './elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@' > elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh
	chmod +x elpa2_test_real_default_kernel_qr_decomposition@SUFFIX@.sh
693

694
695
696
elpa2_test_real_choose_kernel_with_api@SUFFIX@.sh:
	echo './elpa2_test_real_choose_kernel_with_api@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_choose_kernel_with_api@SUFFIX@.sh
	chmod +x elpa2_test_real_choose_kernel_with_api@SUFFIX@.sh
697

698
699
700
elpa1_test_complex@SUFFIX@.sh:
	echo './elpa1_test_complex@SUFFIX@ $$TEST_FLAGS' > elpa1_test_complex@SUFFIX@.sh
	chmod +x elpa1_test_complex@SUFFIX@.sh
701

702
703
704
elpa2_test_complex@SUFFIX@.sh:
	echo './elpa2_test_complex@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex@SUFFIX@.sh
	chmod +x elpa2_test_complex@SUFFIX@.sh
705

706
707
708
elpa2_test_complex_default_kernel@SUFFIX@.sh:
	echo './elpa2_test_complex_default_kernel@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_default_kernel@SUFFIX@.sh
	chmod +x elpa2_test_complex_default_kernel@SUFFIX@.sh
709

710
711
712
elpa2_test_complex_choose_kernel_with_api@SUFFIX@.sh:
	echo './elpa2_test_complex_choose_kernel_with_api@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_choose_kernel_with_api@SUFFIX@.sh
	chmod +x elpa2_test_complex_choose_kernel_with_api@SUFFIX@.sh
713
714

if WANT_SINGLE_PRECISION_REAL
715
716
717
elpa1_test_real_single_precision@SUFFIX@.sh:
	echo './elpa1_test_real_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa1_test_real_single_precision@SUFFIX@.sh
	chmod +x elpa1_test_real_single_precision@SUFFIX@.sh
718

719
720
721
elpa2_test_real_single_precision@SUFFIX@.sh:
	echo './elpa2_test_real_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_single_precision@SUFFIX@.sh
722

723
724
725
elpa2_test_real_default_kernel_single_precision@SUFFIX@.sh:
	echo './elpa2_test_real_default_kernel_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_default_kernel_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_default_kernel_single_precision@SUFFIX@.sh
726

727
728
729
elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@.sh:
	echo './elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@' > elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_default_kernel_qr_decomposition_single_precision@SUFFIX@.sh
730

731
732
733
elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@.sh:
	echo './elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_choose_kernel_with_api_single_precision@SUFFIX@.sh
734
735
736
endif

if WANT_SINGLE_PRECISION_COMPLEX
737
738
739
elpa1_test_complex_single_precision@SUFFIX@.sh:
	echo './elpa1_test_complex_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa1_test_complex_single_precision@SUFFIX@.sh
	chmod +x elpa1_test_complex_single_precision@SUFFIX@.sh
740

741
742
743
elpa2_test_complex_single_precision@SUFFIX@.sh:
	echo './elpa2_test_complex_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_complex_single_precision@SUFFIX@.sh
744

745
746
747
elpa2_test_complex_default_kernel_single_precision@SUFFIX@.sh:
	echo './elpa2_test_complex_default_kernel_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_default_kernel_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_complex_default_kernel_single_precision@SUFFIX@.sh
748

749
750
751
elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@.sh:
	echo './elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_complex_choose_kernel_with_api_single_precision@SUFFIX@.sh
752
753
754
endif

if WITH_GPU_VERSION
755
756
757
elpa2_test_real_gpu_version@SUFFIX@.sh:
	echo './elpa2_test_real_gpu_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_gpu_version@SUFFIX@.sh
	chmod +x elpa2_test_real_gpu_version@SUFFIX@.sh
758

759
760
761
elpa2_test_complex_gpu_version@SUFFIX@.sh:
	echo './elpa2_test_complex_gpu_version@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_gpu_version@SUFFIX@.sh
	chmod +x elpa2_test_complex_gpu_version@SUFFIX@.sh
762
763

if WANT_SINGLE_PRECISION_REAL
764
765
766
elpa2_test_real_gpu_version_single_precision@SUFFIX@.sh:
	echo './elpa2_test_real_gpu_version_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_real_gpu_version_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_real_gpu_version_single_precision@SUFFIX@.sh
767
768
769
endif

if WANT_SINGLE_PRECISION_COMPLEX
770
771
772
elpa2_test_complex_gpu_version_single_precision@SUFFIX@.sh:
	echo './elpa2_test_complex_gpu_version_single_precision@SUFFIX@ $$TEST_FLAGS' > elpa2_test_complex_gpu_version_single_precision@SUFFIX@.sh
	chmod +x elpa2_test_complex_gpu_version_single_precision@SUFFIX@.sh
773
774
775
776
777
778
779
780
781
endif
# GPU_VERSION
endif



# use mpi
endif

782
783
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
784

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

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

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

794
795
796
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 $@

797
798
799
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 $@

800
801
802
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 $@

803
804
805
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 $@

806
807
808
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 $@

809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
test_real.i: $(top_srcdir)/test/fortran_test_programs/test_real.F90
	$(CPP) $(CPPFLAGS) -I$(top_builddir)/ -c $(top_srcdir)/test/fortran_test_programs/test_real.F90 -o $@

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 $@

830
831
include doxygen.am

832
CLEANFILES = \
Andreas Marek's avatar
Andreas Marek committed
833
  elpa1_test* \
834
  elpa2_test*\
835
  *.i
836
837

clean-local:
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
838
839
840
841
	-rm -rf modules/* .fortran_dependencies/*

distclean-local:
	-rm config-f90.h
842
843
844
	-rm -rf ./src/elpa2_kernels/.deps
	-rm -rf ./src/.deps
	-rm -rf ./test/.deps
845
	-rm -rf ./elpa/elpa_generated.h
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
846
	-rmdir ./src/elpa2_kernels/
847
848
	-rmdir ./src
	-rmdir ./test
849
	-rmdir ./m4
850
	-rmdir modules/
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
851
	-rmdir .fortran_dependencies/
852

853
854
855
EXTRA_DIST = \
  fdep/fortran_dependencies.pl \
  fdep/fortran_dependencies.mk \
856
  test/fortran_test_programs/elpa_test_programs_print_headers.X90 \
857
858
  src/elpa_reduce_add_vectors.X90 \
  src/elpa_transpose_vectors.X90 \
859
860
861
862
  src/elpa1_compute_template_real.X90 \
  src/elpa1_compute_template_complex.X90 \
  src/elpa2_compute_template_real.X90 \
  src/elpa2_compute_template_complex.X90 \
863
  src/redist_band.X90 \
864
865
866
867
868
  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 \
869
  nvcc_wrap
870

871
872
873
874
875
876
# Rules to re-generated the headers
elpa/elpa_generated.h: $(top_srcdir)/src/elpa_c_interface.F90
	grep -h "^ *!c>" $^ | sed 's/^ *!c>//;' > $@ || { rm $@; exit 1; }

test/shared_sources/generated.h: $(wildcard $(top_srcdir)/test/shared_sources/*.F90)
	grep -h "^ *!c>" $^ | sed 's/^ *!c>//;' > $@ || { rm $@; exit 1; }
877

878
879
880
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
	$(SHELL) ./config.status libtool
881

882

883
@FORTRAN_MODULE_DEPS@
884
885
886
887
888

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

889
# $1  Object name
890
define require_elpa_lib
891
$1: libelpa@SUFFIX@.la
892
893

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