Browse Source

Test heat options

Samuel Thibault 8 years ago
parent
commit
99a0f01e45
3 changed files with 46 additions and 1 deletions
  1. 1 0
      configure.ac
  2. 3 1
      examples/Makefile.am
  3. 42 0
      examples/heat/heat.sh

+ 1 - 0
configure.ac

@@ -3090,6 +3090,7 @@ AC_CONFIG_COMMANDS([executable-scripts], [
   test -e tests/microbenchs/parallel_independent_homogeneous_tasks_data.sh || ln -sf $ac_abs_top_srcdir/tests/microbenchs/parallel_independent_homogeneous_tasks_data.sh tests/microbenchs/
   test -e tests/microbenchs/parallel_independent_homogeneous_tasks.sh || ln -sf $ac_abs_top_srcdir/tests/microbenchs/parallel_independent_homogeneous_tasks.sh tests/microbenchs/
   test -e tests/datawizard/locality.sh || ln -sf $ac_abs_top_srcdir/tests/datawizard/locality.sh tests/datawizard/
+  test -e examples/heat/heat.sh || ln -sf $ac_abs_top_srcdir/examples/heat/heat.sh examples/heat/
   test -e examples/lu/lu.sh || ln -sf $ac_abs_top_srcdir/examples/lu/lu.sh examples/lu/
 ])
 

+ 3 - 1
examples/Makefile.am

@@ -301,7 +301,9 @@ STARPU_EXAMPLES +=				\
 	cg/cg					\
 	pipeline/pipeline
 
-TESTS += lu/lu.sh
+TESTS += \
+	heat/heat.sh				\
+	lu/lu.sh
 
 endif
 endif

+ 42 - 0
examples/heat/heat.sh

@@ -0,0 +1,42 @@
+#!/bin/bash
+#
+# StarPU --- Runtime system for heterogeneous multicore architectures.
+#
+# Copyright (C) 2017  Université de Bordeaux
+#
+# StarPU 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.
+#
+# StarPU 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.
+
+# Test various LU options
+
+set -e
+
+PREFIX=$(dirname $0)
+
+$PREFIX/head -shape 0
+$PREFIX/head -shape 1
+$PREFIX/head -shape 2
+
+$PREFIX/head -cg
+
+# TODO: FIXME
+
+# segfault
+#$PREFIX/head -v1
+
+# (actually the default...)
+$PREFIX/head -v2
+
+# hang
+#$PREFIX/head -v3
+
+# hang
+#$PREFIX/head -v4