comp_all.sh 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. source all_sched.sh
  19. rm -rf res_*
  20. compute_effic=$1
  21. #for one matrix 20000 x 20000 and one of 10000 x 10000
  22. ninstr=2999999987712
  23. prefix=timings-sched
  24. source comp.sh $prefix/cholesky_no_ctxs res_cholesky_no_ctxs 0 $compute_effic $ninstr
  25. bestval_noctx=0
  26. while read line
  27. do
  28. results=($line)
  29. val=$(echo "${results[1]}"|bc -l)
  30. val=${val/.*}
  31. if [ $val -gt $bestval_noctx ]
  32. then
  33. bestval_noctx=$(echo "$val"|bc -l)
  34. fi
  35. done < res_cholesky_no_ctxs
  36. echo $bestval_noctx
  37. source comp.sh $prefix/isole res_isole 1 $compute_effic $ninstr $bestval_noctx
  38. #compute efficiency in a heterogeneous system
  39. #for the homogeneous one we can compute gflops rate per PU
  40. if [ $compute_effic -eq 1 ]
  41. then
  42. source comp.sh $prefix/1gpu res_1gpu 1 $compute_effic $ninstr $bestval_noctx
  43. source comp.sh $prefix/2gpu res_2gpu 1 $compute_effic $ninstr $bestval_noctx
  44. source comp.sh $prefix/3gpu res_3gpu 1 $compute_effic $ninstr $bestval_noctx
  45. source gnuplot_efficiency.sh efficiency
  46. else
  47. source gnuplot_gflopsrate.sh gflopsrate
  48. fi