regression_test.sh 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2008, 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. DIR=$PWD
  18. ROOTDIR=$DIR/../..
  19. COVDIR=coverage
  20. MAXCPU=3
  21. init()
  22. {
  23. mkdir -p $COVDIR
  24. lcov --directory $COVDIR --zerocounters
  25. }
  26. save_cov()
  27. {
  28. testname=$1
  29. lcov --directory $ROOTDIR --capture --output $COVDIR/$testname.info
  30. lcov -a $COVDIR/$testname.info -o $COVDIR/all.info
  31. }
  32. generatehtml()
  33. {
  34. cd $COVDIR
  35. genhtml all.info
  36. cd $DIR
  37. }
  38. cd $ROOTDIR
  39. make clean 1> /dev/null 2> /dev/null
  40. make examples -j STARPU_ATLAS=1 CPUS=$MAXCPU CUDA=1 COVERAGE=1 1> /dev/null 2> /dev/null
  41. cd $DIR
  42. init;
  43. echo "heat.dm.8k.no.pin.v2"
  44. timing=`STARPU_SCHED="dm" $ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2 2> log`
  45. save_cov "heat.dm.8k.no.pin.v2";
  46. echo "heat.prio.8k"
  47. timing=`STARPU_SCHED="prio" $ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2 -pin 2> log`
  48. save_cov "heat.prio.8k";
  49. echo "heat.dm.8k.v2"
  50. timing=`STARPU_SCHED="dm" $ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 2> log`
  51. save_cov "heat.dm.8k.v2";
  52. echo "heat.ws.8k.v2"
  53. timing=`STARPU_SCHED="ws" $ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 2> log`
  54. save_cov "heat.ws.8k.v2";
  55. echo "heat.greedy.8k.v2"
  56. timing=`STARPU_SCHED="greedy" $ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 2> log`
  57. save_cov "heat.greedy.8k.v2";
  58. echo "heat.dm.8k.cg"
  59. timing=`$ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg 2> log`
  60. save_cov "heat.dm.8k.cg";
  61. echo "heat.dm.8k.v3"
  62. timing=`STARPU_SCHED="dm" $ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v3 2> log`
  63. save_cov "heat.dm.8k.v3";
  64. echo "incrementer"
  65. timing=`$ROOTDIR/examples/incrementer/incrementer 2> log`
  66. save_cov "incrementer";
  67. generatehtml;