tasks_size_overhead.gp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2010,2011,2013,2015,2017 CNRS
  5. # Copyright (C) 2009,2010,2012,2014,2016 Université de Bordeaux
  6. #
  7. # StarPU is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; either version 2.1 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # StarPU is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. #
  18. OUTPUT=tasks_size_overhead.output
  19. VALS=$(sed -n -e '3p' < $OUTPUT)
  20. PLOTS=""
  21. for x in $(seq 1 11)
  22. do
  23. pos=$((2 * $x + 1))
  24. double=$((2 * $x))
  25. value=$(echo "$VALS" | cut -d ' ' -f $pos)
  26. if test -n "$value"
  27. then
  28. PLOTS=",\"$OUTPUT\" using 1:($value)/(\$$pos) with linespoints title columnheader($double) $PLOTS"
  29. fi
  30. done
  31. [ -n "$TERMINAL" ] || TERMINAL=eps
  32. [ -n "$OUTFILE" ] || OUTFILE=tasks_size_overhead.eps
  33. gnuplot << EOF
  34. set terminal $TERMINAL
  35. set output "$OUTFILE"
  36. set key top left
  37. set xlabel "number of cores"
  38. set ylabel "speedup"
  39. plot \
  40. x title "linear" $PLOTS
  41. EOF