sched_no_ctxs.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #!/bin/bash
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2011 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. DIR=$PWD
  17. ROOTDIR=$DIR/../..
  18. TIMINGDIR=$DIR/timings-sched/$1
  19. mkdir -p $TIMINGDIR
  20. BENCH_NAME=cholesky/cholesky_implicit
  21. nsamples=5
  22. filename=$TIMINGDIR/cholesky_no_ctxs
  23. nmaxcpus=12
  24. nmincpus=1
  25. blocks1=40
  26. blocks2=40
  27. size1=20000
  28. size2=10000
  29. param=""
  30. if [ $2="" ];
  31. then
  32. param="-with_noctxs"
  33. else
  34. param=$2
  35. fi
  36. for j in `seq $nmincpus 1 $nmaxcpus`
  37. do
  38. if [ $j -le 3 ]
  39. then
  40. export STARPU_NCUDA=$j
  41. else
  42. export STARPU_NCPUS=$(($j-3))
  43. fi
  44. OPTIONS="$param -nblocks1 $blocks1 -size1 $size1 -nblocks2 $blocks2 -size2 $size2 $2"
  45. source evaluate_expression.sh "$BENCH_NAME" "$OPTIONS" "$filename" "$j"
  46. done