arrayRun.sh 1.24 KB
Newer Older
1
2
#!/bin/bash

3
#SBATCH --exclude=c01,c00
4
5
6
7
8
9
10
11
12
13

dir="/home/martini/malleability_benchmark"
codeDir="/Codes"
ResultsDir="/Results"
module load mpich-3.4.1-noucx

name_dir=$1
i=$2
procs_parents=$3
procs_sons=$4
14
15
#percs_array=(0 25 50 75 100)
percs_array=(0)
16
17
18
19
at_array=(0)
dist_array=(cpu)
cst_array=(0 1 2 3)
css_array=(0 1)
20

21
22
aux=$(($i + 1))
echo "START TEST init=$aux"
23
24
for adr_perc in "${percs_array[@]}"
do
25
  for phy_dist in "${dist_array[@]}"
26
  do
27
    for ibarrier_use in "${at_array[@]}"
28
    do
29
30
31
32
      for cst in "${cst_array[@]}"
      do
        for css in "${css_array[@]}"
        do
33

34
35
36
          i=$(($i + 1))
          cd $name_dir/Run$i
          config_file="config$i.ini"
37

38
39
40
41
42
43
44
45
46
47
          echo "EXEC $procs_parents -- $procs_sons -- $adr_perc -- $ibarrier_use -- $phy_dist -- $cst -- $css -- RUN $i"

          for index in 1 2 3 4 5 6 7 8 9 10
          do
            numP=$(bash $dir$codeDir/recordMachinefile.sh $config_file) # Crea el fichero hostfile
            mpirun -f hostfile.o$SLURM_JOB_ID $dir$codeDir/./bench.out $config_file $i
            rm hostfile.o$SLURM_JOB_ID
          done

        done
48
49
50
51
52
      done
    done  
  done
done
echo "END TEST"
53
sed -i 's/application called MPI_Abort(MPI_COMM_WORLD, -100) - process/shrink cleaning/g' slurm-$SLURM_JOB_ID.out