locality.sh 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/sh -x
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2018 Federal University of Rio Grande do Sul (UFRGS)
  5. # Copyright (C) 2017 CNRS
  6. # Copyright (C) 2017 Inria
  7. # Copyright (C) 2017,2018-2020 Université de Bordeaux
  8. #
  9. # StarPU is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU Lesser General Public License as published by
  11. # the Free Software Foundation; either version 2.1 of the License, or (at
  12. # your option) any later version.
  13. #
  14. # StarPU is distributed in the hope that it will be useful, but
  15. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. #
  18. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  19. #
  20. # Test generation of FxT traces
  21. # Testing another specific scheduler, no need to run this
  22. [ -z "$STARPU_SCHED" -o "$STARPU_SCHED" = modular-eager ] || exit 77
  23. set -e
  24. PREFIX=$(dirname $0)
  25. if [ -n "$STARPU_MIC_SINK_PROGRAM_PATH" ] ; then
  26. STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/locality
  27. # in case libtool got into play
  28. [ -x "$STARPU_MIC_SINK_PROGRAM_PATH/.libs/locality" ] && STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/.libs/locality
  29. fi
  30. test -x $PREFIX/../../tools/starpu_fxt_tool || exit 77
  31. STARPU_SCHED=modular-eager STARPU_FXT_PREFIX=$PREFIX/ $STARPU_LAUNCH $PREFIX/locality
  32. $STARPU_LAUNCH $PREFIX/../../tools/starpu_fxt_tool -memory-states -label-deps -i $PREFIX/prof_file_${USER}_0
  33. # Check that they are approved by Grenoble :)
  34. if type pj_dump > /dev/null 2> /dev/null
  35. then
  36. $PREFIX/../../tools/starpu_paje_sort paje.trace
  37. pj_dump -e 0 paje.trace
  38. fi