dmda_gnuplot.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2009, 2010 Université de Bordeaux 1
  5. # Copyright (C) 2010 Centre National de la Recherche Scientifique
  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. outputfile=dmda.data
  18. gnuplot > /dev/null << EOF
  19. set term postscript eps enhanced color
  20. set output "dmda.eps"
  21. #set pointsize 0.75
  22. set grid y
  23. set grid x
  24. #set logscale x
  25. set size 0.65
  26. set xlabel "Matrix size"
  27. set xtics 0,8192,49152
  28. set size 0.7,0.8
  29. set multiplot
  30. set size 0.7,0.4
  31. set origin 0.0,0.0
  32. set ylabel "Data accesses requiring\n a memory transfer"
  33. set format y "%.0f %%"
  34. set key box right top title "Policy"
  35. plot "$outputfile" usi 1:2 with linespoint lt rgb "black" lw 4 title "heft-tm-pr" ,\
  36. "$outputfile" usi 1:3 with linespoint lt rgb "black" lw 4 title "heft-tmdp-pr"
  37. set size 0.7,0.4
  38. set origin 0.0,0.4
  39. set ylabel "Avg. activity on bus (GB/s)\n"
  40. set format y "%.1f"
  41. set key box right bottom title "Policy"
  42. plot "$outputfile" usi 1:((\$4/\$6)) with linespoint lt rgb "black" lw 4 title "heft-tm-pr",\
  43. "$outputfile" usi 1:((\$5/\$7)) with linespoint lt rgb "black" lw 4 title "heft-tmdp-pr"
  44. unset multiplot
  45. EOF