deps.sh 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2008, 2009, 2010 Université de Bordeaux 1
  5. # Copyright (C) 2010 Centre National de la Recherche Scientifique
  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. maxiter=5
  18. MAXCPU=3
  19. trace_deps()
  20. {
  21. for blocks in `seq 2 2 10`
  22. do
  23. ntheta=$(( $(($blocks*32)) + 2))
  24. size=$(( $(($blocks*32)) * 32))
  25. echo "size : $size"
  26. OPTIONS="-pin -nblocks $blocks -ntheta $ntheta -nthick 34 -v$DEPS"
  27. cd $ROOTDIR
  28. filename=$TIMINGDIR/deps.v$DEPS.$size
  29. #rm -f $filename
  30. make clean 1> /dev/null 2> /dev/null
  31. make examples -j STARPU_ATLAS=1 CPUS=$MAXCPU CUDA=1 1> /dev/null 2> /dev/null
  32. cd $DIR
  33. for iter in `seq 1 $maxiter`
  34. do
  35. echo "$iter / $maxiter"
  36. val=`$ROOTDIR/examples/heat/heat $OPTIONS 2> /dev/null`
  37. echo "$val" >> $filename
  38. done
  39. done
  40. }
  41. DIR=$PWD
  42. ROOTDIR=$DIR/../..
  43. TIMINGDIR=$DIR/timings-sched/
  44. mkdir -p $TIMINGDIR
  45. for deps in 1 2
  46. do
  47. export DEPS=$deps
  48. echo "version : $DEPS"
  49. trace_deps;
  50. done