gnuplot_sched.sh 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2009, 2010 Université de Bordeaux 1
  5. # Copyright (C) 2010 Centre National de la Recherche Scientifique
  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. BENCH_NAME=cholesky_and_lu
  18. filename1=/home/ahugo/sched_ctx/tests/cholesky_and_lu/timings-sched/cholesky_and_lu
  19. filename2=/home/ahugo/trunk2/tests/cholesky_and_lu/timings-sched/cholesky_and_lu
  20. gnuplot > /dev/null << EOF
  21. set term png enhanced color
  22. set output "$BENCH_NAME_big_kernel.png"
  23. set datafile missing 'x'
  24. set pointsize 0.75
  25. set title "Kernel Cholesky - 60 blocks size 61440 - in presence of another kernel cholesky - 40 blocks size 4096"
  26. set grid y
  27. set grid x
  28. set xrange [0:100]
  29. #set logscale x
  30. #set xtics 8192,8192,65536
  31. #set key invert box right bottom title "Scheduling policy"
  32. #set size 0.65
  33. set xlabel "Number of CPUs"
  34. set ylabel "GFlop/s"
  35. plot "$filename1" using 3:5 title 'No context' with lines lt 3 lw 2, "$filename2" using 3:5 title '2 contexts' with lines lt 2 lw 2
  36. EOF
  37. gnuplot > /dev/null << EOF
  38. set term png enhanced color
  39. set output "$BENCH_NAME_small_kernel.png"
  40. set datafile missing 'x'
  41. set pointsize 0.75
  42. set title "Kernel Cholesky - 40 blocks size 4096 - in presence of another kernel cholesky - 60 blocks size 61440"
  43. set grid y
  44. set grid x
  45. set xrange [0:100]
  46. #set logscale x
  47. #set xtics 8192,8192,65536
  48. #set key invert box right bottom title "Scheduling policy"
  49. #set size 0.65
  50. set xlabel "Number of CPUs"
  51. set ylabel "GFlop/s"
  52. plot "$filename1" using 4:6 title 'No context' with lines lt 3 lw 2, "$filename2" using 4:6 title '2 contexts' with lines lt 2 lw 2
  53. EOF