| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | #!/bin/bash# StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2008-2011,2014                           Université de Bordeaux# Copyright (C) 2010,2015,2017                           CNRS## 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		$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
 |