sched_no_ctxs.sh 1.2 KB

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