| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | #!/bin/bash# StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2010-2021  Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria## 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.## We compute the duration of the experiment for multiple powers of 2i=1examplebindir=../../examples/incrementer/rm -f .perftablemax=20for logi in `seq 0 $max`do	$STARPU_LAUNCH $examplebindir/incrementer $i 2> .tmpperf	grep "ms" .tmpperf	grep "ms" .tmpperf | sed -e "s/^\(.*\) elems took \(.*\) ms$/\1	\2/" >> .perftable 	i=$((2 * $i))donegnuplot > /dev/null << EOFset term postscript eps enhanced colorset output "incrementer.eps"set xlabel "Number of iterations"set ylabel "Execution time (ms)"set logscale xset logscale yplot ".perftable" using 1:2 with linespoint title "Time"EOF
 |