| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | #!/bin/sh# StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2020       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.## To have 24 coresexport STARPU_HOSTNAME=sirocco# To avoid slowing down simulationexport MALLOC_PERTURB_=0# You can play with theseexport N=40export NITER=30GAMMAS="1000000 100000 76000 10000 0"for gamma in $GAMMAdo	(for freq_slow in $(seq 1200 200 3500) ; do		STARPU_SCHED_GAMMA=$gamma STARPU_FREQ_SLOW=$freq_slow \			./energy_efficiency $N $NITER | grep "^$(($N * 512))	" &	done) | sort -n -k 2 > dynamic.$gamma.datdonecat > dynamic.gp << EOFset output "dynamic.eps"set term postscript eps enhanced color font ",20"set key bottom rightset xlabel "performance (GFlop/s)"set ylabel "energy (J)"plot \\EOFfor gamma in $GAMMAS; do	cat >> dynamic.gp << EOF	"dynamic.$gamma.dat" using 5:7:6:8 with xyerrorlines lw 2 title "$gamma", \\EOFdonecat >> dynamic.gp << EOFset output "dynamic-time.eps"set xlabel "time (ms)"set ylabel "energy (J)"plot \\EOFfor gamma in $GAMMAS; do	cat >> dynamic.gp << EOF	"dynamic.$gamma.dat" using 3:7:4:8 with xyerrorlines lw 2 title "$gamma", \\EOFdonegnuplot dynamic.gpgv dynamic.eps &gv dynamic-time.eps &
 |