locality.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh -x
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2017-2021 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. rm -rf $PREFIX/locality.traces
  24. mkdir -p $PREFIX/locality.traces
  25. test -x $PREFIX/../../tools/starpu_fxt_tool || exit 77
  26. export STARPU_FXT_PREFIX=$PREFIX/locality.traces
  27. STARPU_FXT_TRACE=1 STARPU_SCHED=modular-eager $STARPU_LAUNCH $PREFIX/locality
  28. $STARPU_LAUNCH $PREFIX/../../tools/starpu_fxt_tool -d $STARPU_FXT_PREFIX -memory-states -label-deps -i $STARPU_FXT_PREFIX/prof_file_${USER}_0
  29. # Check that they are approved by Grenoble :)
  30. if type pj_dump > /dev/null 2> /dev/null
  31. then
  32. $PREFIX/../../tools/starpu_paje_sort $STARPU_FXT_PREFIX/paje.trace
  33. pj_dump -e 0 $STARPU_FXT_PREFIX/paje.trace
  34. fi