schedulers.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/sh
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2012-2020 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. check_success()
  18. {
  19. if [ $1 -ne 0 ] ; then
  20. echo "failure" >&2
  21. exit $1
  22. fi
  23. }
  24. basedir=$(dirname $0)
  25. if test ! -x $basedir/../cholesky/cholesky_tag
  26. then
  27. echo "Application $basedir/../cholesky/cholesky_tag unavailable"
  28. exit 77
  29. fi
  30. if [ -n "$STARPU_SCHED" ]
  31. then
  32. SCHEDULERS=$STARPU_SCHED
  33. else
  34. SCHEDULERS=`$basedir/../../tools/starpu_sched_display | grep -v heteroprio`
  35. fi
  36. for sched in $SCHEDULERS
  37. do
  38. echo "cholesky.$sched"
  39. STARPU_SCHED=$sched $STARPU_LAUNCH $basedir/../cholesky/cholesky_tag -size $((960*3)) -nblocks 3
  40. check_success $?
  41. done