schedulers.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. if test ! -x ./cholesky/cholesky_tag
  25. then
  26. echo "Application ./cholesky/cholesky_tag unavailable"
  27. exit 77
  28. fi
  29. if [ -n "$STARPU_SCHED" ]
  30. then
  31. SCHEDULERS=$STARPU_SCHED
  32. else
  33. SCHEDULERS=`../tools/starpu_sched_display | grep -v heteroprio`
  34. fi
  35. for sched in $SCHEDULERS
  36. do
  37. echo "cholesky.$sched"
  38. STARPU_SCHED=$sched $STARPU_LAUNCH ./cholesky/cholesky_tag -size $((960*3)) -nblocks 3
  39. check_success $?
  40. done