view Lib/fftw-3.2.1/tests/.svn/text-base/Makefile.am.svn-base @ 3:005e311b5e62

Fixed memory leak. :) Need to fix Debug FFTW now though.
author Geogaddi\David <d.m.ronan@qmul.ac.uk>
date Fri, 10 Jul 2015 00:33:15 +0100
parents 25bf17994ef1
children
line wrap: on
line source
AM_CPPFLAGS = -I$(top_srcdir)/kernel -I$(top_srcdir)/libbench2	\
-I$(top_srcdir)/dft -I$(top_srcdir)/rdft -I$(top_srcdir)/reodft	\
-I$(top_srcdir)/threads -I$(top_srcdir)/api 

noinst_PROGRAMS = bench
EXTRA_DIST = check.pl README

if SMP
if !COMBINED_THREADS
LIBFFTWTHREADS = $(top_builddir)/threads/libfftw3@PREC_SUFFIX@_threads.la
endif
else
LIBFFTWTHREADS = 
endif

bench_SOURCES = bench.c hook.c fftw-bench.c fftw-bench.h
bench_LDADD = $(LIBFFTWTHREADS)				\
$(top_builddir)/libfftw3@PREC_SUFFIX@.la		\
$(top_builddir)/libbench2/libbench2.a $(THREADLIBS)

check-local: bench$(EXEEXT)
	perl -w $(srcdir)/check.pl -r -c=30 -v `pwd`/bench
	@echo "--------------------------------------------------------------"
	@echo "         FFTW transforms passed basic tests!"
	@echo "--------------------------------------------------------------"
if SMP
	perl -w $(srcdir)/check.pl -r -c=30 -v --nthreads=2 `pwd`/bench
	@echo "--------------------------------------------------------------"
	@echo "         FFTW threaded transforms passed basic tests!"
	@echo "--------------------------------------------------------------"
endif

bigcheck: bench$(EXEEXT)
	perl -w $(srcdir)/check.pl -a -v `pwd`/bench
	@echo "--------------------------------------------------------------"
	@echo "         FFTW transforms passed big tests!"
	@echo "--------------------------------------------------------------"
if SMP
	perl -w $(srcdir)/check.pl -a -v --nthreads=2 `pwd`/bench
	perl -w $(srcdir)/check.pl -a -v --nthreads=3 `pwd`/bench
	perl -w $(srcdir)/check.pl -a -v --nthreads=10 `pwd`/bench
	@echo "--------------------------------------------------------------"
	@echo "         FFTW threaded transforms passed big tests!"
	@echo "--------------------------------------------------------------"
endif

smallcheck: bench$(EXEEXT)
	perl -w $(srcdir)/check.pl -r -c=1 -v `pwd`/bench
	perl -w $(srcdir)/check.pl -r --estimate -c=5 -v `pwd`/bench
	@echo "--------------------------------------------------------------"
	@echo "         FFTW transforms passed a few tests!"
	@echo "--------------------------------------------------------------"
if SMP
	perl -w $(srcdir)/check.pl -r --estimate -c=2 -v --nthreads=2 `pwd`/bench
	@echo "--------------------------------------------------------------"
	@echo "         FFTW threaded transforms passed a few tests!"
	@echo "--------------------------------------------------------------"
endif

paranoid-check: bench$(EXEEXT)
if SMP
	perl -w $(srcdir)/check.pl -a --patient --nthreads=10 --paranoid `pwd`/bench
	perl -w $(srcdir)/check.pl -a --patient --nthreads=7 --paranoid `pwd`/bench
	perl -w $(srcdir)/check.pl -a --patient --nthreads=3 --paranoid `pwd`/bench
	perl -w $(srcdir)/check.pl -a --patient --nthreads=2 --paranoid `pwd`/bench
endif
	perl -w $(srcdir)/check.pl -a --patient --paranoid `pwd`/bench

exhaustive-check: bench$(EXEEXT)
if SMP
	perl -w $(srcdir)/check.pl -a --exhaustive --nthreads=10 --paranoid `pwd`/bench
	perl -w $(srcdir)/check.pl -a --exhaustive --nthreads=7 --paranoid `pwd`/bench
	perl -w $(srcdir)/check.pl -a --exhaustive --nthreads=3 --paranoid `pwd`/bench
	perl -w $(srcdir)/check.pl -a --exhaustive --nthreads=2 --paranoid `pwd`/bench
endif
	perl -w $(srcdir)/check.pl -a --exhaustive --paranoid `pwd`/bench