gnuplot_efficiency.sh 4.7 KB

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