deps.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2008-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. #
  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=`$STARPU_LAUNCH $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