sched_no_ctxs.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. for j in `seq $nmincpus 1 $nmaxcpus`
  30. do
  31. if [ $j -le 3 ]
  32. then
  33. export STARPU_NCUDA=$j
  34. else
  35. export STARPU_NCPUS=$(($j-3))
  36. fi
  37. OPTIONS="$2 -with_noctxs -nblocks1 $blocks1 -size1 $size1 -nblocks2 $blocks2 -size2 $size2"
  38. source evaluate_expression.sh "$BENCH_NAME" "$OPTIONS" "$filename" "$j"
  39. done