locality.sh 1.6 KB

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