sched_no_ctxs.sh 1.3 KB

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