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

Iker Martín's avatar
Iker Martín committed
3
4
#SBATCH --exclude=c02,c01,c00
#SBATCH -p P1
5
6
7
8

dir="/home/martini/malleability_benchmark"
codeDir="/Codes"
ResultsDir="/Results"
Iker Martín's avatar
Iker Martín committed
9
10
11
12

nodelist=$SLURM_JOB_NODELIST
nodes=$SLURM_JOB_NUM_NODES

13
14
15
16
17
18
module load mpich-3.4.1-noucx

name_dir=$1
i=$2
procs_parents=$3
procs_sons=$4
Iker Martín's avatar
Iker Martín committed
19
20
21
22
23
24
#percs_array=(0 25 50 75 100)
percs_array=(0)
at_array=(0)
dist_array=(cpu)
cst_array=(0 1 2 3)
css_array=(0 1)
25

26
27
aux=$(($i + 1))
echo "START TEST init=$aux"
28
29
for adr_perc in "${percs_array[@]}"
do
Iker Martín's avatar
Iker Martín committed
30
  for phy_dist in "${dist_array[@]}"
31
  do
Iker Martín's avatar
Iker Martín committed
32
    for ibarrier_use in "${at_array[@]}"
33
    do
Iker Martín's avatar
Iker Martín committed
34
35
36
37
      for cst in "${cst_array[@]}"
      do
        for css in "${css_array[@]}"
        do
38

Iker Martín's avatar
Iker Martín committed
39
40
41
          i=$(($i + 1))
          cd $name_dir/Run$i
          config_file="config$i.ini"
42

Iker Martín's avatar
Iker Martín committed
43
44
45
46
47
48
49
50
51
52
          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 $nodelist $nodes
            rm hostfile.o$SLURM_JOB_ID
          done

        done
53
54
55
56
57
      done
    done  
  done
done
echo "END TEST"
Iker Martín's avatar
Iker Martín committed
58
sed -i 's/application called MPI_Abort(MPI_COMM_WORLD, -100) - process/shrink cleaning/g' slurm-$SLURM_JOB_ID.out