dmda_gnuplot.sh 1.7 KB

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