coverage.sh 4.2 KB

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