Browse Source

examples: add a shell script to call examples with different sets of parameters w.r.t coverage

Nathalie Furmento 14 years ago
parent
commit
75f01af154
2 changed files with 85 additions and 2 deletions
  1. 4 2
      examples/Makefile.am
  2. 81 0
      examples/coverage/coverage.sh

+ 4 - 2
examples/Makefile.am

@@ -17,7 +17,8 @@
 LIBS = $(top_builddir)/src/libstarpu.la @LIBS@
 LIBS = $(top_builddir)/src/libstarpu.la @LIBS@
 AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
 AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/examples/ -I$(top_builddir)/include
 
 
-TESTS = $(check_PROGRAMS)
+TESTS	=	coverage/coverage.sh	\
+		$(check_PROGRAMS)
 
 
 if STARPU_HAVE_FFTW
 if STARPU_HAVE_FFTW
 if STARPU_HAVE_FFTWL
 if STARPU_HAVE_FFTWL
@@ -46,7 +47,8 @@ EXTRA_DIST = 					\
 	basic_examples/variable_kernels_opencl_codelet.cl	\
 	basic_examples/variable_kernels_opencl_codelet.cl	\
 	matvecmult/matvecmult_kernel.cl				\
 	matvecmult/matvecmult_kernel.cl				\
 	basic_examples/block_opencl_kernel.cl			\
 	basic_examples/block_opencl_kernel.cl			\
-	filters/fblock_opencl_codelet.cl
+	filters/fblock_opencl_codelet.cl			\
+	coverage/coverage.sh
 
 
 CLEANFILES = 					\
 CLEANFILES = 					\
 	gordon/null_kernel_gordon.spuelf	\
 	gordon/null_kernel_gordon.spuelf	\

+ 81 - 0
examples/coverage/coverage.sh

@@ -0,0 +1,81 @@
+#!/bin/bash
+#
+# StarPU
+# Copyright (C) Université Bordeaux 1, CNRS 2008-2010 (see AUTHORS file)
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# See the GNU Lesser General Public License in COPYING.LGPL for more details.
+#
+
+apps()
+{
+    echo "tag_example"
+    tag_example/tag_example -iter 64 -i 128 -j 24
+
+    echo "tag_example2"
+    tag_example/tag_example2 -iter 64 -i 128
+
+    echo "chol.dm"
+    STARPU_CALIBRATE=1 STARPU_SCHED="dm" cholesky/dw_cholesky -pin
+
+    echo "chol.dmda"
+    STARPU_CALIBRATE=1 STARPU_SCHED="dmda" cholesky/dw_cholesky -pin
+
+    echo "chol.cpu"
+    STARPU_CALIBRATE=1 STARPU_NCUDA=0 STARPU_SCHED="dm" cholesky/dw_cholesky -pin
+
+    echo "chol.gpu"
+    STARPU_CALIBRATE=1 STARPU_NCPUS=0 STARPU_SCHED="dm" cholesky/dw_cholesky -pin
+
+    echo "heat.dm.4k.calibrate.v2"
+    STARPU_CALIBRATE=1 STARPU_SCHED="dm" heat/heat -ntheta 66 -nthick 66 -nblocks 4 -v2 -pin
+
+    echo "heat.dm.8k.calibrate.v2"
+    STARPU_CALIBRATE=1 STARPU_SCHED="dm" heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2 -pin
+
+    echo "heat.dm.16k.calibrate.v2"
+    STARPU_CALIBRATE=1 STARPU_SCHED="dm" heat/heat -ntheta 130 -nthick 130 -nblocks 16 -v2 -pin
+
+    echo "heat.dm.8k.no.pin.v2"
+    STARPU_SCHED="dm" heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2
+
+    echo "heat.dm.8k.v2.no.prio"
+    STARPU_SCHED="no-prio" heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
+
+    echo "heat.dm.8k.v2.random"
+    STARPU_SCHED="random" heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
+
+    echo "heat.dm.8k.v2"
+    STARPU_SCHED="dm" heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
+
+    echo "heat.dm.16k.v2"
+    STARPU_SCHED="dm" heat/heat -ntheta 130 -nthick 130 -nblocks 16 -pin -v2
+
+    echo "heat.greedy.8k.v2"
+    STARPU_SCHED="greedy" heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
+
+    echo "heat.8k.cg"
+    heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
+
+    echo "heat.dm.8k.cg"
+    STARPU_SCHED="dm" heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
+
+    echo "mult.dm.common"
+    STARPU_SCHED="dm" mult/dw_mult_no_stride -nblocks 4 -x 4096 -y 4096 -z 1024 -pin -common-model
+
+    echo "mult.dm"
+    STARPU_CALIBRATE=1 STARPU_SCHED="dm" mult/dw_mult_no_stride -nblocks 8 -x 8192 -y 8192 -z 8192 -pin
+
+    echo "mult.dmda"
+    STARPU_CALIBRATE=1 STARPU_SCHED="dmda" mult/dw_mult_no_stride -nblocks 8 -x 8192 -y 8192 -z 8192 -pin
+}
+
+apps;