coverage.sh 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #!/bin/bash
  2. #
  3. # StarPU
  4. # Copyright (C) Université Bordeaux 1, CNRS 2008-2010 (see AUTHORS file)
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. #
  17. check_success()
  18. {
  19. if [ $1 != 0 ] ; then
  20. exit $1
  21. fi
  22. }
  23. apps()
  24. {
  25. echo "block opencl"
  26. STARPU_NCUDA=0 STARPU_NCPUS=0 ./basic_examples/block
  27. check_success $?
  28. echo "variable opencl"
  29. STARPU_NCUDA=0 STARPU_NCPUS=0 ./basic_examples/variable 100
  30. check_success $?
  31. echo "variable no worker"
  32. STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 ./basic_examples/variable
  33. check_success $?
  34. echo "incrementer opencl"
  35. STARPU_NCUDA=0 STARPU_NCPUS=0 ./incrementer/incrementer 10
  36. check_success $?
  37. echo "incrementer no worker"
  38. STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 ./incrementer/incrementer
  39. check_success $?
  40. echo "tag_example"
  41. ./tag_example/tag_example -iter 64 -i 128 -j 24
  42. check_success $?
  43. echo "tag_example2"
  44. ./tag_example/tag_example2 -iter 64 -i 128
  45. check_success $?
  46. if [ -f ./cholesky/dw_cholesky ] ; then
  47. echo "chol.dm"
  48. STARPU_CALIBRATE=1 STARPU_SCHED="dm" ./cholesky/dw_cholesky -pin
  49. check_success $?
  50. echo "chol.dmda"
  51. STARPU_CALIBRATE=1 STARPU_SCHED="dmda" ./cholesky/dw_cholesky -pin
  52. check_success $?
  53. echo "chol.cpu"
  54. STARPU_CALIBRATE=1 STARPU_NCUDA=0 STARPU_SCHED="dm" ./cholesky/dw_cholesky -pin
  55. check_success $?
  56. echo "chol.gpu"
  57. STARPU_CALIBRATE=1 STARPU_NCPUS=0 STARPU_SCHED="dm" ./cholesky/dw_cholesky -pin
  58. check_success $?
  59. fi
  60. if [ -f ./heat/heat ] ; then
  61. echo "heat.dm.4k.calibrate.v2"
  62. STARPU_CALIBRATE=1 STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 66 -nblocks 4 -v2 -pin
  63. check_success $?
  64. echo "heat.dm.8k.calibrate.v2"
  65. STARPU_CALIBRATE=1 STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2 -pin
  66. check_success $?
  67. echo "heat.dm.8k.no.pin.v2"
  68. STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2
  69. check_success $?
  70. echo "heat.dm.8k.v2.no.prio"
  71. STARPU_SCHED="no-prio" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
  72. check_success $?
  73. echo "heat.dm.8k.v2.random"
  74. STARPU_SCHED="random" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
  75. check_success $?
  76. echo "heat.dm.8k.v2"
  77. STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
  78. check_success $?
  79. echo "heat.greedy.8k.v2"
  80. STARPU_SCHED="greedy" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
  81. check_success $?
  82. echo "heat.8k.cg"
  83. ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
  84. check_success $?
  85. echo "heat.dm.8k.cg"
  86. STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
  87. check_success $?
  88. fi
  89. if [ -f ./mult/dw_mult_no_stride ] ; then
  90. echo "mult.dm.common"
  91. STARPU_SCHED="dm" ./mult/dw_mult_no_stride -nblocks 4 -x 4096 -y 4096 -z 1024 -pin -common-model
  92. check_success $?
  93. echo "mult.dm"
  94. STARPU_CALIBRATE=1 STARPU_SCHED="dm" ./mult/dw_mult_no_stride -nblocks 8 -x 8192 -y 8192 -z 8192 -pin
  95. check_success $?
  96. echo "mult.dmda"
  97. STARPU_CALIBRATE=1 STARPU_SCHED="dmda" ./mult/dw_mult_no_stride -nblocks 8 -x 8192 -y 8192 -z 8192 -pin
  98. check_success $?
  99. fi
  100. }
  101. apps;