regression_test.sh 2.5 KB

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