|
@@ -1,7 +1,7 @@
|
|
|
#!/bin/bash
|
|
|
# StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
#
|
|
|
-# Copyright (C) 2010,2011,2014,2017 Université de Bordeaux
|
|
|
+# Copyright (C) 2010,2011,2014,2017,2020 Université de Bordeaux
|
|
|
# Copyright (C) 2010,2011,2015,2017 CNRS
|
|
|
#
|
|
|
# StarPU is free software; you can redistribute it and/or modify
|
|
@@ -29,109 +29,109 @@ apps()
|
|
|
{
|
|
|
if [ -f $exampledir/basic_examples/block ] ; then
|
|
|
echo "block opencl"
|
|
|
- STARPU_NCUDA=0 STARPU_NCPUS=0 $exampledir/basic_examples/block
|
|
|
+ STARPU_NCUDA=0 STARPU_NCPUS=0 $STARPU_LAUNCH $exampledir/basic_examples/block
|
|
|
check_success $?
|
|
|
fi
|
|
|
|
|
|
if [ -f $exampledir/basic_examples/variable ] ; then
|
|
|
echo "variable opencl"
|
|
|
- STARPU_NCUDA=0 STARPU_NCPUS=0 $exampledir/basic_examples/variable 100
|
|
|
+ STARPU_NCUDA=0 STARPU_NCPUS=0 $STARPU_LAUNCH $exampledir/basic_examples/variable 100
|
|
|
check_success $?
|
|
|
|
|
|
echo "variable no worker"
|
|
|
- STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 $exampledir/basic_examples/variable
|
|
|
+ STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 $STARPU_LAUNCH $exampledir/basic_examples/variable
|
|
|
check_success $?
|
|
|
fi
|
|
|
|
|
|
if [ -f $exampledir/incrementer/incrementer ] ; then
|
|
|
echo "incrementer opencl"
|
|
|
- STARPU_NCUDA=0 STARPU_NCPUS=0 $exampledir/incrementer/incrementer 10
|
|
|
+ STARPU_NCUDA=0 STARPU_NCPUS=0 $STARPU_LAUNCH $exampledir/incrementer/incrementer 10
|
|
|
check_success $?
|
|
|
|
|
|
echo "incrementer no worker"
|
|
|
- STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 $exampledir/incrementer/incrementer
|
|
|
+ STARPU_NCUDA=0 STARPU_NOPENCL=0 STARPU_NCPUS=0 $STARPU_LAUNCH $exampledir/incrementer/incrementer
|
|
|
check_success $?
|
|
|
fi
|
|
|
|
|
|
if [ -f $exampledir/tag_example/tag_example ] ; then
|
|
|
echo "tag_example"
|
|
|
- $exampledir/tag_example/tag_example -iter 64 -i 128 -j 24
|
|
|
+ $STARPU_LAUNCH $exampledir/tag_example/tag_example -iter 64 -i 128 -j 24
|
|
|
check_success $?
|
|
|
fi
|
|
|
|
|
|
if [ -f $exampledir/tag_example/tag_example2 ] ; then
|
|
|
echo "tag_example2"
|
|
|
- $exampledir/tag_example/tag_example2 -iter 64 -i 128
|
|
|
+ $STARPU_LAUNCH $exampledir/tag_example/tag_example2 -iter 64 -i 128
|
|
|
check_success $?
|
|
|
fi
|
|
|
|
|
|
if [ -f $exampledir/cholesky/dw_cholesky ] ; then
|
|
|
echo "chol.dm"
|
|
|
- STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/cholesky/dw_cholesky -pin
|
|
|
+ STARPU_CALIBRATE=1 STARPU_SCHED="dm" $STARPU_LAUNCH $exampledir/cholesky/dw_cholesky -pin
|
|
|
check_success $?
|
|
|
|
|
|
echo "chol.dmda"
|
|
|
- STARPU_CALIBRATE=1 STARPU_SCHED="dmda" $exampledir/cholesky/dw_cholesky -pin
|
|
|
+ STARPU_CALIBRATE=1 STARPU_SCHED="dmda" $STARPU_LAUNCH $exampledir/cholesky/dw_cholesky -pin
|
|
|
check_success $?
|
|
|
|
|
|
echo "chol.cpu"
|
|
|
- STARPU_CALIBRATE=1 STARPU_NCUDA=0 STARPU_SCHED="dm" $exampledir/cholesky/dw_cholesky -pin
|
|
|
+ STARPU_CALIBRATE=1 STARPU_NCUDA=0 STARPU_SCHED="dm" $STARPU_LAUNCH $exampledir/cholesky/dw_cholesky -pin
|
|
|
check_success $?
|
|
|
|
|
|
echo "chol.gpu"
|
|
|
- STARPU_CALIBRATE=1 STARPU_NCPUS=0 STARPU_SCHED="dm" $exampledir/cholesky/dw_cholesky -pin
|
|
|
+ STARPU_CALIBRATE=1 STARPU_NCPUS=0 STARPU_SCHED="dm" $STARPU_LAUNCH $exampledir/cholesky/dw_cholesky -pin
|
|
|
check_success $?
|
|
|
fi
|
|
|
|
|
|
if [ -f $exampledir/heat/heat ] ; then
|
|
|
echo "heat.dm.4k.calibrate.v2"
|
|
|
- STARPU_CALIBRATE=1 STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 66 -nblocks 4 -v2 -pin
|
|
|
+ STARPU_CALIBRATE=1 STARPU_SCHED="dm" $STARPU_LAUNCH $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" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2 -pin
|
|
|
+ STARPU_CALIBRATE=1 STARPU_SCHED="dm" $STARPU_LAUNCH $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2 -pin
|
|
|
check_success $?
|
|
|
|
|
|
echo "heat.dm.8k.no.pin.v2"
|
|
|
- STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2
|
|
|
+ STARPU_SCHED="dm" $STARPU_LAUNCH $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -v2
|
|
|
check_success $?
|
|
|
|
|
|
# echo "heat.dm.8k.v2.no.prio"
|
|
|
-# STARPU_SCHED="no-prio" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
|
|
|
+# STARPU_SCHED="no-prio" $STARPU_LAUNCH $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
|
|
|
# check_success $?
|
|
|
|
|
|
echo "heat.dm.8k.v2.random"
|
|
|
- STARPU_SCHED="random" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
|
|
|
+ STARPU_SCHED="random" $STARPU_LAUNCH $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
|
|
|
check_success $?
|
|
|
|
|
|
echo "heat.dm.8k.v2"
|
|
|
- STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
|
|
|
+ STARPU_SCHED="dm" $STARPU_LAUNCH $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
|
|
|
check_success $?
|
|
|
|
|
|
echo "heat.greedy.8k.v2"
|
|
|
- STARPU_SCHED="greedy" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
|
|
|
+ STARPU_SCHED="greedy" $STARPU_LAUNCH $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2
|
|
|
check_success $?
|
|
|
|
|
|
echo "heat.8k.cg"
|
|
|
- $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
|
|
|
+ $STARPU_LAUNCH $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
|
|
|
check_success $?
|
|
|
|
|
|
echo "heat.dm.8k.cg"
|
|
|
- STARPU_SCHED="dm" $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
|
|
|
+ STARPU_SCHED="dm" $STARPU_LAUNCH $exampledir/heat/heat -ntheta 66 -nthick 130 -nblocks 8 -pin -v2 -cg
|
|
|
check_success $?
|
|
|
fi
|
|
|
|
|
|
if [ -f $exampledir/mult/dw_mult_no_stride ] ; then
|
|
|
echo "mult.dm.common"
|
|
|
- STARPU_SCHED="dm" $exampledir/mult/dw_mult_no_stride -nblocks 4 -x 4096 -y 4096 -z 1024 -pin -common-model
|
|
|
+ STARPU_SCHED="dm" $STARPU_LAUNCH $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" $exampledir/mult/dw_mult_no_stride -nblocks 8 -x 4096 -y 4096 -z 4096 -pin
|
|
|
+ STARPU_CALIBRATE=1 STARPU_SCHED="dm" $STARPU_LAUNCH $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" $exampledir/mult/dw_mult_no_stride -nblocks 8 -x 4096 -y 4096 -z 4096 -pin
|
|
|
+ STARPU_CALIBRATE=1 STARPU_SCHED="dmda" $STARPU_LAUNCH $exampledir/mult/dw_mult_no_stride -nblocks 8 -x 4096 -y 4096 -z 4096 -pin
|
|
|
check_success $?
|
|
|
fi
|
|
|
}
|