gnuplot_efficiency.sh 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2011 Inria
  5. # Copyright (C) 2012,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. filename=$1
  19. gnuplot > /dev/null << EOF
  20. set terminal postscript
  21. set output "| ps2pdf - $filename.pdf"
  22. set datafile missing 'x'
  23. set pointsize 0.75
  24. set title "Efficacite de la machine"
  25. set grid y
  26. set grid x
  27. set xrange [1:8]
  28. set yrange [0.7:1.7]
  29. #set logscale x
  30. 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)
  31. set key invert box right
  32. #set size 0.65
  33. set xlabel "Nombre de cpus dans le premier contexte / Nombre de cpus dans le deuxieme contexte"
  34. set ylabel "Efficacite"
  35. 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"
  36. EOF
  37. gnuplot > /dev/null << EOF
  38. set terminal postscript
  39. set output "| ps2pdf - gflops_$filename.pdf"
  40. set datafile missing 'x'
  41. set pointsize 0.75
  42. set title "Efficacite de la machine"
  43. set grid y
  44. set grid x
  45. set xrange [1:8]
  46. #set yrange [0.6:2.3]
  47. #set logscale x
  48. 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)
  49. set key invert box right
  50. #set size 0.65
  51. set xlabel "Nombre de cpus dans le premier contexte / Nombre de cpus dans le deuxieme contexte"
  52. set ylabel "Gflops/s"
  53. 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"
  54. EOF