coverage.sh 4.5 KB

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