gnuplot_efficiency.sh 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2011 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. filename=$1
  17. gnuplot > /dev/null << EOF
  18. set terminal postscript
  19. set output "| ps2pdf - $filename.pdf"
  20. set datafile missing 'x'
  21. set pointsize 0.75
  22. set title "Efficacite de la machine"
  23. set grid y
  24. set grid x
  25. set xrange [1:8]
  26. set yrange [0.7:1.7]
  27. #set logscale x
  28. set xtics ("1/8" 1,"2/7" 2, "3/6" 3,"4/5" 4,"5/4" 5,"6/3" 6,"7/2" 7,"8/1" 8)
  29. set key invert box right
  30. #set size 0.65
  31. set xlabel "Nombre de cpus dans le premier contexte / Nombre de cpus dans le deuxieme contexte"
  32. set ylabel "Efficacite"
  33. plot "res_isole12" using 4:7 title 'Contextes isoles: 1GPU/2GPU' with lines lt 1 lw 4 lc rgb "blue" ,"res_isole21" using 4:7 title 'Contextes isoles: 2GPU/1GPU' with lines lt 1 lw 4 lc rgb "red" ,"res_isole30" using 4:7 title 'Contextes isoles: 3GPU/0GPU ' with lines lt 1 lw 4 lc rgb "green","res_isole03" using 4:7 title 'Contextes isoles: 0GPU/3GPU' with lines lt 1 lw 4 lc rgb "yellow","res_1gpu02" using 4:7 title 'Partage 1 GPU: 0GPU/2GPU' with lines lt 2 lw 4 lc rgb "pink","res_1gpu11" using 4:7 title 'Partage 1 GPU: 1GPU/1GPU' with lines lt 2 lw 4 lc rgb "aquamarine", "res_1gpu20" using 4:7 title 'Partage 1 GPU: 2GPU/0GPU ' with lines lt 2 lw 4 lc rgb "grey","res_2gpu01" using 4:7 title 'Partage 2 GPU: 0GPU/1 GPU' with lines lt 3 lw 4 lc rgb "brown","res_2gpu10" using 4:7 title 'Partage 2 GPU: 1 GPU/0GPU' with lines lt 3 lw 4 lc rgb "greenyellow", "res_3gpu00" using 4:7 title 'Partage 3 GPU' with lines lt 4 lw 4 lc rgb "black"
  34. EOF
  35. gnuplot > /dev/null << EOF
  36. set terminal postscript
  37. set output "| ps2pdf - gflops_$filename.pdf"
  38. set datafile missing 'x'
  39. set pointsize 0.75
  40. set title "Efficacite de la machine"
  41. set grid y
  42. set grid x
  43. set xrange [1:8]
  44. #set yrange [0.6:2.3]
  45. #set logscale x
  46. set xtics ("1/8" 1,"2/7" 2, "3/6" 3,"4/5" 4,"5/4" 5,"6/3" 6,"7/2" 7,"8/1" 8)
  47. set key invert box right
  48. #set size 0.65
  49. set xlabel "Nombre de cpus dans le premier contexte / Nombre de cpus dans le deuxieme contexte"
  50. set ylabel "Gflops/s"
  51. plot "res_isole12" using 4:6 title 'Contextes isoles et 1GPU/2GPU' with lines lt 1 lw 4 lc rgb "blue" ,"res_isole21" using 4:6 title 'Contextes isoles et 2GPU/1GPU' with lines lt 1 lw 4 lc rgb "red" ,"res_isole30" using 4:6 title 'Contextes isoles et 3GPU/ ' with lines lt 1 lw 4 lc rgb "green","res_isole03" using 4:6 title 'Contextes isoles et /3GPU' with lines lt 1 lw 4 lc rgb "yellow","res_1gpu02" using 4:6 title 'Partage 1 GPU: / 2GPU' with lines lt 2 lw 4 lc rgb "pink","res_1gpu11" using 4:6 title 'Partage 1 GPU: 1GPU/1GPU' with lines lt 2 lw 4 lc rgb "magenta", "res_1gpu20" using 4:6 title 'Partage 1 GPU: 2GPU/ ' with lines lt 2 lw 4 lc rgb "grey","res_2gpu01" using 4:6 title 'Partage 2 GPU: /1 GPU' with lines lt 3 lw 4 lc rgb "orange","res_2gpu10" using 4:6 title 'Partage 2 GPU: 1 GPU/' with lines lt 3 lw 4 lc rgb "violet", "res_3gpu00" using 4:6 title 'Partage 3 GPU' with lines lt 4 lw 4 lc rgb "black"
  52. EOF