| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | #!/bin/bash# StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2008-2021  Université de Bordeaux, CNRS (LaBRI UMR 5800), 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/mkdir -p $TIMINGDIRcd $ROOTDIRmake clean 1> /dev/null 2> /dev/nullmake STARPU_ATLAS=1 CPUS=16 1> /dev/null 2> /dev/nullecho "speedup ..."for theta in 32 64 128 256 512 1024do		size=$(($theta * 32))	echo "# ncpus	time	reftime" >  $TIMINGDIR/speedup.$size	for cpus in 1 2 4 6 8 10 12 14 16	do		export STARPU_NCPUS=$cpus		echo "ncpus $cpus size $size"		filename=$TIMINGDIR/timing.$cpus.$size		$STARPU_LAUNCH $ROOTDIR/examples/heat -v2 -pin -nthick 34 -ntheta $(($theta+2)) -nblocks 16 2>/dev/null| tee $filename		echo "$cpus	`cat $TIMINGDIR/timing.$cpus.$size`	`cat  $TIMINGDIR/timing.1.$size`" >> $TIMINGDIR/speedup.$size	donedone
 |