Browse Source

Also create scalability graphs during tasks_size_overhead_scheds test

Samuel Thibault 8 years ago
parent
commit
b85c58dc76

+ 1 - 0
configure.ac

@@ -2998,6 +2998,7 @@ AC_CONFIG_COMMANDS([executable-scripts], [
   chmod +x doc/doxygen/doxygen_filter.sh
   mkdir -p tests/microbenchs
   test -e tests/microbenchs/tasks_size_overhead.sh || ln -sf $ac_abs_top_srcdir/tests/microbenchs/tasks_size_overhead.sh tests/microbenchs/
+  test -e tests/microbenchs/tasks_size_overhead_sched.sh || ln -sf $ac_abs_top_srcdir/tests/microbenchs/tasks_size_overhead_sched.sh tests/microbenchs/
   test -e tests/microbenchs/tasks_size_overhead_scheds.sh || ln -sf $ac_abs_top_srcdir/tests/microbenchs/tasks_size_overhead_scheds.sh tests/microbenchs/
   test -e tests/microbenchs/tasks_size_overhead.gp || ln -sf $ac_abs_top_srcdir/tests/microbenchs/tasks_size_overhead.gp tests/microbenchs/
   test -e tests/microbenchs/microbench.sh || ln -sf $ac_abs_top_srcdir/tests/microbenchs/microbench.sh tests/microbenchs/

+ 4 - 3
tests/microbenchs/tasks_size_overhead.gp

@@ -17,7 +17,6 @@
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
 
-#!/bin/sh
 OUTPUT=tasks_size_overhead.output
 VALS=$(sed -n -e '3p' < $OUTPUT)
 VAL1=$(echo "$VALS" | cut -d '	' -f 3)
@@ -31,9 +30,11 @@ VAL8=$(echo "$VALS" | cut -d '	' -f 17)
 VAL9=$(echo "$VALS" | cut -d '	' -f 19)
 VAL10=$(echo "$VALS" | cut -d '	' -f 21)
 VAL11=$(echo "$VALS" | cut -d '	' -f 23)
+[ -n "$TERMINAL" ] || TERMINAL=eps
+[ -n "$OUTFILE" ] || OUTFILE=tasks_size_overhead.eps
 gnuplot << EOF
-set terminal eps
-set output "tasks_size_overhead.eps"
+set terminal $TERMINAL
+set output "$OUTFILE"
 set key top left
 set xlabel "number of cores"
 set ylabel "speedup"

+ 1 - 2
tests/microbenchs/tasks_size_overhead.sh

@@ -2,7 +2,7 @@
 
 # StarPU --- Runtime system for heterogeneous multicore architectures.
 #
-# Copyright (C) 2009, 2010  Université de Bordeaux
+# Copyright (C) 2009, 2010, 2016  Université de Bordeaux
 # Copyright (C) 2010, 2011  CNRS
 #
 # StarPU is free software; you can redistribute it and/or modify
@@ -16,7 +16,6 @@
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
-#!/bin/sh
 ROOT=${0%.sh}
 $ROOT "$@" > tasks_size_overhead.output
 $ROOT.gp

+ 24 - 0
tests/microbenchs/tasks_size_overhead_sched.sh

@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# StarPU --- Runtime system for heterogeneous multicore architectures.
+#
+# Copyright (C) 2009, 2010, 2016  Université de Bordeaux
+# Copyright (C) 2010, 2011  CNRS
+#
+# 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.
+
+ROOT=${0%.sh}
+ROOT=${ROOT%_sched}
+$ROOT "$@" > tasks_size_overhead.output
+export TERMINAL=png
+export OUTFILE=tasks_size_overhead_${STARPU_SCHED}.png
+$ROOT.gp

+ 1 - 1
tests/microbenchs/tasks_size_overhead_scheds.sh

@@ -20,4 +20,4 @@ source $(dirname $0)/microbench.sh
 
 XFAIL="heteroprio"
 
-test_scheds tasks_size_overhead
+test_scheds tasks_size_overhead_sched.sh