浏览代码

The examples are not in the current directory anymore

Cédric Augonnet 14 年之前
父节点
当前提交
77e1ff6d24
共有 1 个文件被更改,包括 28 次插入26 次删除
  1. 28 26
      tests/coverage/coverage.sh

+ 28 - 26
tests/coverage/coverage.sh

@@ -15,6 +15,8 @@
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 #
 
+exampledir=../examples/
+
 check_success()
 {
     if [ $1 != 0 ] ; then
@@ -25,100 +27,100 @@ check_success()
 apps()
 {
     echo "block opencl"
-    STARPU_NCUDA=0 STARPU_NCPUS=0 ./basic_examples/block
+    STARPU_NCUDA=0 STARPU_NCPUS=0 $exampledir/basic_examples/block
     check_success $?
 
     echo "variable opencl"
-    STARPU_NCUDA=0 STARPU_NCPUS=0 ./basic_examples/variable 100
+    STARPU_NCUDA=0 STARPU_NCPUS=0 $exampledir/basic_examples/variable 100
     check_success $?
 
     echo "variable no worker"
-    STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 ./basic_examples/variable 
+    STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 $exampledir/basic_examples/variable 
     check_success $?
 
     echo "incrementer opencl"
-    STARPU_NCUDA=0 STARPU_NCPUS=0 ./incrementer/incrementer 10
+    STARPU_NCUDA=0 STARPU_NCPUS=0 $exampledir/incrementer/incrementer 10
     check_success $?
 
     echo "incrementer no worker"
-    STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 ./incrementer/incrementer
+    STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 $exampledir/incrementer/incrementer
     check_success $?
 
     echo "tag_example"
-    ./tag_example/tag_example -iter 64 -i 128 -j 24
+    $exampledir/tag_example/tag_example -iter 64 -i 128 -j 24
     check_success $?
 
     echo "tag_example2"
-    ./tag_example/tag_example2 -iter 64 -i 128
+    $exampledir/tag_example/tag_example2 -iter 64 -i 128
     check_success $?
 
-    if [ -f ./cholesky/dw_cholesky ] ; then
+    if [ -f $exampledir/cholesky/dw_cholesky ] ; then
 	echo "chol.dm"
-	STARPU_CALIBRATE=1 STARPU_SCHED="dm" ./cholesky/dw_cholesky -pin
+	STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/cholesky/dw_cholesky -pin
 	check_success $?
 
 	echo "chol.dmda"
-	STARPU_CALIBRATE=1 STARPU_SCHED="dmda" ./cholesky/dw_cholesky -pin
+	STARPU_CALIBRATE=1 STARPU_SCHED="dmda" $exampledir/cholesky/dw_cholesky -pin
 	check_success $?
 
 	echo "chol.cpu"
-	STARPU_CALIBRATE=1 STARPU_NCUDA=0 STARPU_SCHED="dm" ./cholesky/dw_cholesky -pin
+	STARPU_CALIBRATE=1 STARPU_NCUDA=0 STARPU_SCHED="dm" $exampledir/cholesky/dw_cholesky -pin
 	check_success $?
 
 	echo "chol.gpu"
-	STARPU_CALIBRATE=1 STARPU_NCPUS=0 STARPU_SCHED="dm" ./cholesky/dw_cholesky -pin
+	STARPU_CALIBRATE=1 STARPU_NCPUS=0 STARPU_SCHED="dm" $exampledir/cholesky/dw_cholesky -pin
 	check_success $?
     fi
 
-    if [ -f ./heat/heat ] ; then
+    if [ -f $exampledir/heat/heat ] ; then
 	echo "heat.dm.4k.calibrate.v2"
-	STARPU_CALIBRATE=1 STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 66 -nblocks 4 -v2 -pin
+	STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 66 -nblocks 4 -v2 -pin
 	check_success $?
 
 	echo "heat.dm.8k.calibrate.v2"
-	STARPU_CALIBRATE=1 STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2 -pin
+	STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2 -pin
 	check_success $?
 
 	echo "heat.dm.8k.no.pin.v2"
-	STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2
+	STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2
 	check_success $?
 
 	echo "heat.dm.8k.v2.no.prio"
-	STARPU_SCHED="no-prio" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
+	STARPU_SCHED="no-prio" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
 	check_success $?
 
 	echo "heat.dm.8k.v2.random"
-	STARPU_SCHED="random" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
+	STARPU_SCHED="random" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
 	check_success $?
 
 	echo "heat.dm.8k.v2"
-	STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
+	STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
 	check_success $?
 
 	echo "heat.greedy.8k.v2"
-	STARPU_SCHED="greedy" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
+	STARPU_SCHED="greedy" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
 	check_success $?
 
 	echo "heat.8k.cg"
-	./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
+	$exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
 	check_success $?
 
 	echo "heat.dm.8k.cg"
-	STARPU_SCHED="dm" ./heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
+	STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
 	check_success $?
     fi
 
-    if [ -f ./mult/dw_mult_no_stride ] ; then
+    if [ -f $exampledir/mult/dw_mult_no_stride ] ; then
 	echo "mult.dm.common"
-	STARPU_SCHED="dm" ./mult/dw_mult_no_stride -nblocks 4 -x 4096 -y 4096 -z 1024 -pin -common-model
+	STARPU_SCHED="dm" $exampledir/mult/dw_mult_no_stride -nblocks 4 -x 4096 -y 4096 -z 1024 -pin -common-model
 	check_success $?
 
 	echo "mult.dm"
-	STARPU_CALIBRATE=1 STARPU_SCHED="dm" ./mult/dw_mult_no_stride -nblocks 8 -x 4096 -y 4096 -z 4096 -pin
+	STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/mult/dw_mult_no_stride -nblocks 8 -x 4096 -y 4096 -z 4096 -pin
 	check_success $?
 
 	echo "mult.dmda"
-	STARPU_CALIBRATE=1 STARPU_SCHED="dmda" ./mult/dw_mult_no_stride -nblocks 8 -x 4096 -y 4096 -z 4096 -pin
+	STARPU_CALIBRATE=1 STARPU_SCHED="dmda" $exampledir/mult/dw_mult_no_stride -nblocks 8 -x 4096 -y 4096 -z 4096 -pin
 	check_success $?
     fi
 }