tasks_size_overhead.gp 1.2 KB

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