schedulers.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2012 Inria
  5. # Copyright (C) 2012-2015,2017 CNRS
  6. # Copyright (C) 2017 Université de Bordeaux
  7. #
  8. # StarPU is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU Lesser General Public License as published by
  10. # the Free Software Foundation; either version 2.1 of the License, or (at
  11. # your option) any later version.
  12. #
  13. # StarPU is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  18. #
  19. check_success()
  20. {
  21. if [ $1 -ne 0 ] ; then
  22. echo "failure" >&2
  23. exit $1
  24. fi
  25. }
  26. if test ! -x ./cholesky/cholesky_tag
  27. then
  28. echo "Application ./cholesky/cholesky_tag unavailable"
  29. exit 77
  30. fi
  31. SCHEDULERS=`STARPU_SCHED="help" ./basic_examples/hello_world 2>&1 | awk '/\t->/ {print $1}' | grep -v heteroprio`
  32. for sched in $SCHEDULERS
  33. do
  34. echo "cholesky.$sched"
  35. STARPU_SCHED=$sched ./cholesky/cholesky_tag
  36. check_success $?
  37. done