lu.sh 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/sh
  2. #
  3. # StarPU --- Runtime system for heterogeneous multicore architectures.
  4. #
  5. # Copyright (C) 2017 Université de Bordeaux
  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. # Test various LU options
  18. set -e
  19. PREFIX=$(dirname $0)
  20. if [ -n "$STARPU_MIC_SINK_PROGRAM_PATH" ] ; then
  21. STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/lu_implicit_example_float
  22. # in case libtool got into play
  23. [ -x "$STARPU_MIC_SINK_PROGRAM_PATH/.libs/lu_implicit_example_float" ] && STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/.libs/lu_implicit_example_float
  24. fi
  25. $PREFIX/lu_implicit_example_float -size $((960 * 4)) -nblocks 4 -piv
  26. $PREFIX/lu_implicit_example_float -size $((960 * 4)) -nblocks 4 -no-stride
  27. $PREFIX/lu_implicit_example_float -size $((960 * 4)) -nblocks 4 -bound
  28. $PREFIX/lu_implicit_example_float -size $((960 * 2)) -nblocks 2 -bounddeps
  29. $PREFIX/lu_implicit_example_float -size $((960 * 2)) -nblocks 2 -bound -bounddeps -bounddepsprio
  30. if [ -n "$STARPU_MIC_SINK_PROGRAM_PATH" ] ; then
  31. STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/lu_example_float
  32. # in case libtool got into play
  33. [ -x "$STARPU_MIC_SINK_PROGRAM_PATH/.libs/lu_example_float" ] && STARPU_MIC_SINK_PROGRAM_NAME=$STARPU_MIC_SINK_PROGRAM_PATH/.libs/lu_example_float
  34. fi
  35. $PREFIX/lu_example_float -size $((960 * 4)) -nblocks 4 -piv
  36. $PREFIX/lu_example_float -size $((960 * 4)) -nblocks 4 -no-stride
  37. $PREFIX/lu_example_float -size $((960 * 4)) -nblocks 4 -bound
  38. $PREFIX/lu_example_float -size $((960 * 2)) -nblocks 2 -bounddeps
  39. $PREFIX/lu_example_float -size $((960 * 2)) -nblocks 2 -bound -bounddeps -bounddepsprio