coverage.sh 3.9 KB

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