heat.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2017 CNRS
  5. # Copyright (C) 2017 Inria
  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. # Test various LU options
  20. set -e
  21. PREFIX=$(dirname $0)
  22. if [ -n "$STARPU_MIC_SINK_PROGRAM_PATH" ] ; then
  23. STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/heat
  24. # in case libtool got into play
  25. [ -x "$STARPU_MIC_SINK_PROGRAM_PATH/.libs/heat" ] && STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/.libs/heat
  26. fi
  27. $PREFIX/heat -shape 0
  28. $PREFIX/heat -shape 1
  29. # sometimes lead to pivot being 0
  30. #$PREFIX/heat -shape 2
  31. $PREFIX/heat -cg
  32. # TODO: FIXME
  33. # segfault
  34. #$PREFIX/heat -v1
  35. # (actually the default...)
  36. $PREFIX/heat -v2
  37. # hang
  38. #$PREFIX/heat -v3
  39. # hang
  40. #$PREFIX/heat -v4