regression_test.sh 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2008, 2009, 2010, 2014 Université de Bordeaux
  5. # Copyright (C) 2010 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. 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.lws.8k.v2"
  56. timing=`STARPU_SCHED="lws" $ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 2> log`
  57. save_cov "heat.lws.8k.v2";
  58. echo "heat.greedy.8k.v2"
  59. timing=`STARPU_SCHED="greedy" $ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 2> log`
  60. save_cov "heat.greedy.8k.v2";
  61. echo "heat.dm.8k.cg"
  62. timing=`$ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg 2> log`
  63. save_cov "heat.dm.8k.cg";
  64. echo "heat.dm.8k.v3"
  65. timing=`STARPU_SCHED="dm" $ROOTDIR/examples/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v3 2> log`
  66. save_cov "heat.dm.8k.v3";
  67. echo "incrementer"
  68. timing=`$ROOTDIR/examples/incrementer/incrementer 2> log`
  69. save_cov "incrementer";
  70. generatehtml;