| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 | #!/bin/bash# StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2009-2011,2014,2019                      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.#maxiter=5ROOTDIR=../../TIMINGDIR=$PWD/timing/# Testing another specific scheduler, no need to run this[ -z "$STARPU_SCHED" -a "$STARPU_SCHED" != dm -a "$STARPU_SCHED" != greedy ] || exit 77export STARPU_WORKERS_CUDAID="1"trace_sched(){	sched=$1	use_prio=$2	export STARPU_SCHED=$sched	for blocks in `seq 24 2 24`	do		size=$(($blocks*1024))			echo "size : $size"			OPTIONS="-pin -nblocks $blocks -size $size"		if [ $use_prio -eq 0 ]		then			OPTIONS="$OPTIONS -no-prio"		fi				filename=$TIMINGDIR/sched.$STARPU_SCHED.$size.$use_prio		for iter in `seq 1 $maxiter`		do			echo "$iter / $maxiter"			echo "$ROOTDIR/examples/cholesky/dw_cholesky $OPTIONS 2> /dev/null"			val=`$ROOTDIR/examples/cholesky/dw_cholesky $OPTIONS 2> /dev/null`			echo "$val" >> $filename			echo "$val"		done	done}schedlist='dm dm dm dm greedy dm'export STARPU_NCUDA=1export STARPU_CALIBRATE=1mkdir -p $TIMINGDIR# calibratefor i in `seq 1 5` doSTARPU_SCHED="dm" $ROOTDIR/examples/cholesky/dw_cholesky -nblocks 16 -size 16384 2> /dev/nulldonefor sched in $schedlistdo	echo "sched : $sched"	trace_sched $sched 0;	trace_sched $sched 1;done
 |