tasks_size_overhead_sched.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2009-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. #
  17. ROOT=${0%.sh}
  18. ROOT=${ROOT%_sched}
  19. unset STARPU_SSILENT
  20. $STARPU_LAUNCH $_STARPU_LAUNCH $ROOT "$@" > tasks_size_overhead.output
  21. ret=$?
  22. if test "$ret" = "0"
  23. then
  24. # if the program was successfull try to run gnuplot
  25. DIR=
  26. [ -z "$STARPU_BENCH_DIR" ] || DIR="$STARPU_BENCH_DIR/"
  27. export TERMINAL=png
  28. export OUTFILE=${DIR}tasks_size_overhead_${STARPU_SCHED}.png
  29. gnuplot_av=$(which gnuplot)
  30. if test -n "$gnuplot_av"
  31. then
  32. # If gnuplot is available, plot the result
  33. $ROOT.gp
  34. ret=$?
  35. fi
  36. fi
  37. exit $ret