cannam@95
|
1 AM_CPPFLAGS = -I$(top_srcdir)/kernel -I$(top_srcdir)/libbench2 \
|
cannam@95
|
2 -I$(top_srcdir)/dft -I$(top_srcdir)/rdft -I$(top_srcdir)/reodft \
|
cannam@95
|
3 -I$(top_srcdir)/threads -I$(top_srcdir)/api
|
cannam@95
|
4
|
cannam@95
|
5 noinst_PROGRAMS = bench
|
cannam@95
|
6 EXTRA_DIST = check.pl README
|
cannam@95
|
7
|
cannam@95
|
8 if THREADS
|
cannam@95
|
9 bench_CFLAGS = $(PTHREAD_CFLAGS)
|
cannam@95
|
10 if !COMBINED_THREADS
|
cannam@95
|
11 LIBFFTWTHREADS = $(top_builddir)/threads/libfftw3@PREC_SUFFIX@_threads.la
|
cannam@95
|
12 endif
|
cannam@95
|
13 else
|
cannam@95
|
14 if OPENMP
|
cannam@95
|
15 bench_CFLAGS = $(OPENMP_CFLAGS)
|
cannam@95
|
16 LIBFFTWTHREADS = $(top_builddir)/threads/libfftw3@PREC_SUFFIX@_omp.la
|
cannam@95
|
17 endif
|
cannam@95
|
18 endif
|
cannam@95
|
19
|
cannam@95
|
20 bench_SOURCES = bench.c hook.c fftw-bench.c fftw-bench.h
|
cannam@95
|
21 bench_LDADD = $(LIBFFTWTHREADS) \
|
cannam@95
|
22 $(top_builddir)/libfftw3@PREC_SUFFIX@.la \
|
cannam@95
|
23 $(top_builddir)/libbench2/libbench2.a $(THREADLIBS)
|
cannam@95
|
24
|
cannam@95
|
25 check-local: bench$(EXEEXT)
|
cannam@95
|
26 perl -w $(srcdir)/check.pl $(CHECK_PL_OPTS) -r -c=30 -v `pwd`/bench
|
cannam@95
|
27 @echo "--------------------------------------------------------------"
|
cannam@95
|
28 @echo " FFTW transforms passed basic tests!"
|
cannam@95
|
29 @echo "--------------------------------------------------------------"
|
cannam@95
|
30 if SMP
|
cannam@95
|
31 perl -w $(srcdir)/check.pl $(CHECK_PL_OPTS) -r -c=30 -v --nthreads=2 `pwd`/bench
|
cannam@95
|
32 @echo "--------------------------------------------------------------"
|
cannam@95
|
33 @echo " FFTW threaded transforms passed basic tests!"
|
cannam@95
|
34 @echo "--------------------------------------------------------------"
|
cannam@95
|
35 endif
|
cannam@95
|
36
|
cannam@95
|
37 bigcheck: bench$(EXEEXT)
|
cannam@95
|
38 perl -w $(srcdir)/check.pl $(CHECK_PL_OPTS) -a -v `pwd`/bench
|
cannam@95
|
39 @echo "--------------------------------------------------------------"
|
cannam@95
|
40 @echo " FFTW transforms passed big tests!"
|
cannam@95
|
41 @echo "--------------------------------------------------------------"
|
cannam@95
|
42 if SMP
|
cannam@95
|
43 perl -w $(srcdir)/check.pl $(CHECK_PL_OPTS) -a -v --nthreads=2 `pwd`/bench
|
cannam@95
|
44 perl -w $(srcdir)/check.pl $(CHECK_PL_OPTS) -a -v --nthreads=3 `pwd`/bench
|
cannam@95
|
45 perl -w $(srcdir)/check.pl $(CHECK_PL_OPTS) -a -v --nthreads=10 `pwd`/bench
|
cannam@95
|
46 @echo "--------------------------------------------------------------"
|
cannam@95
|
47 @echo " FFTW threaded transforms passed big tests!"
|
cannam@95
|
48 @echo "--------------------------------------------------------------"
|
cannam@95
|
49 endif
|
cannam@95
|
50
|
cannam@95
|
51 smallcheck: bench$(EXEEXT)
|
cannam@95
|
52 perl -w $(srcdir)/check.pl -r -c=1 -v `pwd`/bench
|
cannam@95
|
53 perl -w $(srcdir)/check.pl -r --estimate -c=5 -v `pwd`/bench
|
cannam@95
|
54 @echo "--------------------------------------------------------------"
|
cannam@95
|
55 @echo " FFTW transforms passed a few tests!"
|
cannam@95
|
56 @echo "--------------------------------------------------------------"
|
cannam@95
|
57 if SMP
|
cannam@95
|
58 perl -w $(srcdir)/check.pl -r --estimate -c=2 -v --nthreads=2 `pwd`/bench
|
cannam@95
|
59 @echo "--------------------------------------------------------------"
|
cannam@95
|
60 @echo " FFTW threaded transforms passed a few tests!"
|
cannam@95
|
61 @echo "--------------------------------------------------------------"
|
cannam@95
|
62 endif
|
cannam@95
|
63
|
cannam@95
|
64 paranoid-check: bench$(EXEEXT)
|
cannam@95
|
65 if SMP
|
cannam@95
|
66 perl -w $(srcdir)/check.pl -a --patient --nthreads=10 --paranoid `pwd`/bench
|
cannam@95
|
67 perl -w $(srcdir)/check.pl -a --patient --nthreads=7 --paranoid `pwd`/bench
|
cannam@95
|
68 perl -w $(srcdir)/check.pl -a --patient --nthreads=3 --paranoid `pwd`/bench
|
cannam@95
|
69 perl -w $(srcdir)/check.pl -a --patient --nthreads=2 --paranoid `pwd`/bench
|
cannam@95
|
70 endif
|
cannam@95
|
71 perl -w $(srcdir)/check.pl -a --patient --paranoid `pwd`/bench
|
cannam@95
|
72
|
cannam@95
|
73 exhaustive-check: bench$(EXEEXT)
|
cannam@95
|
74 if SMP
|
cannam@95
|
75 perl -w $(srcdir)/check.pl -a --exhaustive --nthreads=10 --paranoid `pwd`/bench
|
cannam@95
|
76 perl -w $(srcdir)/check.pl -a --exhaustive --nthreads=7 --paranoid `pwd`/bench
|
cannam@95
|
77 perl -w $(srcdir)/check.pl -a --exhaustive --nthreads=3 --paranoid `pwd`/bench
|
cannam@95
|
78 perl -w $(srcdir)/check.pl -a --exhaustive --nthreads=2 --paranoid `pwd`/bench
|
cannam@95
|
79 endif
|
cannam@95
|
80 perl -w $(srcdir)/check.pl -a --exhaustive --paranoid `pwd`/bench
|