tasks_size_overhead.gp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/bin/sh
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2009, 2010 Université de Bordeaux
  5. # Copyright (C) 2010, 2011 CNRS
  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. #!/bin/sh
  18. OUTPUT=tasks_size_overhead.output
  19. VALS=$(sed -n -e '3p' < $OUTPUT)
  20. VAL1=$(echo "$VALS" | cut -d ' ' -f 3)
  21. VAL2=$(echo "$VALS" | cut -d ' ' -f 5)
  22. VAL3=$(echo "$VALS" | cut -d ' ' -f 7)
  23. VAL4=$(echo "$VALS" | cut -d ' ' -f 9)
  24. VAL5=$(echo "$VALS" | cut -d ' ' -f 11)
  25. VAL6=$(echo "$VALS" | cut -d ' ' -f 13)
  26. VAL7=$(echo "$VALS" | cut -d ' ' -f 15)
  27. VAL8=$(echo "$VALS" | cut -d ' ' -f 17)
  28. VAL9=$(echo "$VALS" | cut -d ' ' -f 19)
  29. VAL10=$(echo "$VALS" | cut -d ' ' -f 21)
  30. VAL11=$(echo "$VALS" | cut -d ' ' -f 23)
  31. gnuplot << EOF
  32. set terminal eps
  33. set output "tasks_size_overhead.eps"
  34. set key top left
  35. set xlabel "number of cores"
  36. set ylabel "speedup"
  37. plot \
  38. "$OUTPUT" using 1:($VAL1)/(\$3) with linespoints title columnheader(2), \
  39. "$OUTPUT" using 1:($VAL2)/(\$5) with linespoints title columnheader(4), \
  40. "$OUTPUT" using 1:($VAL3)/(\$7) with linespoints title columnheader(6), \
  41. "$OUTPUT" using 1:($VAL4)/(\$9) with linespoints title columnheader(8), \
  42. "$OUTPUT" using 1:($VAL5)/(\$11) with linespoints title columnheader(10), \
  43. "$OUTPUT" using 1:($VAL6)/(\$13) with linespoints title columnheader(12), \
  44. "$OUTPUT" using 1:($VAL7)/(\$15) with linespoints title columnheader(14), \
  45. "$OUTPUT" using 1:($VAL8)/(\$17) with linespoints title columnheader(16), \
  46. "$OUTPUT" using 1:($VAL9)/(\$19) with linespoints title columnheader(18), \
  47. "$OUTPUT" using 1:($VAL10)/(\$21) with linespoints title columnheader(20), \
  48. "$OUTPUT" using 1:($VAL11)/(\$23) with linespoints title columnheader(22), \
  49. x title "linear"
  50. EOF