comp_all.sh 1.7 KB

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