| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | #!/bin/bash# StarPU --- Runtime system for heterogeneous multicore architectures.# # Copyright (C) 2011  INRIA# # StarPU is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or (at# your option) any later version.# # StarPU is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.# # See the GNU Lesser General Public License in COPYING.LGPL for more details.DIR=$PWDROOTDIR=$DIR/../..TIMINGDIR=$DIR/timings-sched/mkdir -p $TIMINGDIRBENCH_NAME=cholesky/cholesky_implicitfilename=$TIMINGDIR/$1gpu=$2gpu1=$3gpu2=$4nmaxcpus=$STARPU_NCPUSecho $nmaxcpusnmincpus1=1nmincpus2=1if [ $gpu1 -gt 0 ]then    nmincpus1=0fiif [ $gpu2 -gt 0 ]then    nmincpus2=0fiblocks1=40blocks2=40size1=20000size2=10000for j in `seq $nmincpus1 1 $(($nmaxcpus-1))`do    if [ $j -gt $(($nmaxcpus-$nmincpus2)) ]    then	break    fi    ncpus1=$j    ncpus2=$(($nmaxcpus-$j))            OPTIONS="-with_ctxs -nblocks1 $blocks1 -size1 $size1 -nblocks2 $blocks2 -size2 $size2 -gpu $gpu -gpu1 $gpu1 -gpu2 $gpu2 -cpu1 $ncpus1 -cpu2 $ncpus2"    source evaluate_expression.sh "$BENCH_NAME" "$OPTIONS" "$filename" "$gpu $gpu1 $gpu2 $ncpus1 $ncpus2"done
 |