| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 | #!/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.source all_sched.shrm -rf res_*compute_effic=$1#for one matrix 20000 x 20000 and one of 10000 x 10000ninstr=2999999987712prefix=timings-schedsource comp.sh $prefix/cholesky_no_ctxs res_cholesky_no_ctxs 0 $compute_effic $ninstrbestval_noctx=0while read linedo     results=($line)    val=$(echo "${results[1]}"|bc -l)    val=${val/.*}    if [ $val -gt $bestval_noctx ]    then	bestval_noctx=$(echo "$val"|bc -l)    fidone < res_cholesky_no_ctxsecho $bestval_noctxsource comp.sh $prefix/isole res_isole 1 $compute_effic $ninstr $bestval_noctx#compute efficiency in a heterogeneous system#for the homogeneous one we can compute gflops rate per PUif [ $compute_effic -eq 1 ]then    source comp.sh $prefix/1gpu res_1gpu 1 $compute_effic $ninstr $bestval_noctx    source comp.sh $prefix/2gpu res_2gpu  1 $compute_effic $ninstr $bestval_noctx    source comp.sh $prefix/3gpu res_3gpu 1 $compute_effic $ninstr $bestval_noctx    source gnuplot_efficiency.sh efficiencyelse    source gnuplot_gflopsrate.sh gflopsratefi
 |