dmda_gnuplot.sh 958 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. outputfile=dmda.data
  3. gnuplot > /dev/null << EOF
  4. set term postscript eps enhanced color
  5. set output "dmda.eps"
  6. #set pointsize 0.75
  7. set grid y
  8. set grid x
  9. #set logscale x
  10. set size 0.65
  11. set xlabel "Matrix size"
  12. set xtics 0,8192,49152
  13. set size 0.7,0.8
  14. set multiplot
  15. set size 0.7,0.4
  16. set origin 0.0,0.0
  17. set ylabel "Data accesses requiring\n a memory transfer"
  18. set format y "%.0f %%"
  19. set key box right top title "Policy"
  20. plot "$outputfile" usi 1:2 with linespoint lt rgb "black" lw 4 title "heft-tm-pr" ,\
  21. "$outputfile" usi 1:3 with linespoint lt rgb "black" lw 4 title "heft-tmdp-pr"
  22. set size 0.7,0.4
  23. set origin 0.0,0.4
  24. set ylabel "Avg. activity on bus (GB/s)\n"
  25. set format y "%.1f"
  26. set key box right bottom title "Policy"
  27. plot "$outputfile" usi 1:((\$4/\$6)) with linespoint lt rgb "black" lw 4 title "heft-tm-pr",\
  28. "$outputfile" usi 1:((\$5/\$7)) with linespoint lt rgb "black" lw 4 title "heft-tmdp-pr"
  29. unset multiplot
  30. EOF