coverage.sh 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2010 Université de Bordeaux 1
  5. # Copyright (C) 2010, 2011 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. exampledir=../examples/
  18. check_success()
  19. {
  20. if [ $1 != 0 ] ; then
  21. exit $1
  22. fi
  23. }
  24. apps()
  25. {
  26. echo "block opencl"
  27. STARPU_NCUDA=0 STARPU_NCPUS=0 $exampledir/basic_examples/block
  28. check_success $?
  29. echo "variable opencl"
  30. STARPU_NCUDA=0 STARPU_NCPUS=0 $exampledir/basic_examples/variable 100
  31. check_success $?
  32. echo "variable no worker"
  33. STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 $exampledir/basic_examples/variable
  34. check_success $?
  35. echo "incrementer opencl"
  36. STARPU_NCUDA=0 STARPU_NCPUS=0 $exampledir/incrementer/incrementer 10
  37. check_success $?
  38. echo "incrementer no worker"
  39. STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 $exampledir/incrementer/incrementer
  40. check_success $?
  41. echo "tag_example"
  42. $exampledir/tag_example/tag_example -iter 64 -i 128 -j 24
  43. check_success $?
  44. echo "tag_example2"
  45. $exampledir/tag_example/tag_example2 -iter 64 -i 128
  46. check_success $?
  47. if [ -f $exampledir/cholesky/dw_cholesky ] ; then
  48. echo "chol.dm"
  49. STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/cholesky/dw_cholesky -pin
  50. check_success $?
  51. echo "chol.dmda"
  52. STARPU_CALIBRATE=1 STARPU_SCHED="dmda" $exampledir/cholesky/dw_cholesky -pin
  53. check_success $?
  54. echo "chol.cpu"
  55. STARPU_CALIBRATE=1 STARPU_NCUDA=0 STARPU_SCHED="dm" $exampledir/cholesky/dw_cholesky -pin
  56. check_success $?
  57. echo "chol.gpu"
  58. STARPU_CALIBRATE=1 STARPU_NCPUS=0 STARPU_SCHED="dm" $exampledir/cholesky/dw_cholesky -pin
  59. check_success $?
  60. fi
  61. if [ -f $exampledir/heat/heat ] ; then
  62. echo "heat.dm.4k.calibrate.v2"
  63. STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 66 -nblocks 4 -v2 -pin
  64. check_success $?
  65. echo "heat.dm.8k.calibrate.v2"
  66. STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2 -pin
  67. check_success $?
  68. echo "heat.dm.8k.no.pin.v2"
  69. STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2
  70. check_success $?
  71. # echo "heat.dm.8k.v2.no.prio"
  72. # STARPU_SCHED="no-prio" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
  73. # check_success $?
  74. echo "heat.dm.8k.v2.random"
  75. STARPU_SCHED="random" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
  76. check_success $?
  77. echo "heat.dm.8k.v2"
  78. STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
  79. check_success $?
  80. echo "heat.greedy.8k.v2"
  81. STARPU_SCHED="greedy" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
  82. check_success $?
  83. echo "heat.8k.cg"
  84. $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
  85. check_success $?
  86. echo "heat.dm.8k.cg"
  87. STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
  88. check_success $?
  89. fi
  90. if [ -f $exampledir/mult/dw_mult_no_stride ] ; then
  91. echo "mult.dm.common"
  92. STARPU_SCHED="dm" $exampledir/mult/dw_mult_no_stride -nblocks 4 -x 4096 -y 4096 -z 1024 -pin -common-model
  93. check_success $?
  94. echo "mult.dm"
  95. STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/mult/dw_mult_no_stride -nblocks 8 -x 4096 -y 4096 -z 4096 -pin
  96. check_success $?
  97. echo "mult.dmda"
  98. STARPU_CALIBRATE=1 STARPU_SCHED="dmda" $exampledir/mult/dw_mult_no_stride -nblocks 8 -x 4096 -y 4096 -z 4096 -pin
  99. check_success $?
  100. fi
  101. }
  102. apps;