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

3
#SBATCH --exclude=c02,c01,c00
4
5
6
7

dir="/home/martini/malleability_benchmark"
codeDir="/Codes"
ResultsDir="/Results"
8
9
10
11

nodelist=$SLURM_JOB_NODELIST
nodes=$SLURM_JOB_NUM_NODES

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

name_dir=$1
i=$2
procs_parents=$3
procs_sons=$4
18
19
#percs_array=(0 25 50 75 100)
percs_array=(0)
20
21
22
23
at_array=(0)
dist_array=(cpu)
cst_array=(0 1 2 3)
css_array=(0 1)
24

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

38
39
40
          i=$(($i + 1))
          cd $name_dir/Run$i
          config_file="config$i.ini"
41

42
43
44
45
46
          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
47
            mpirun -f hostfile.o$SLURM_JOB_ID $dir$codeDir/./bench.out $config_file $i $nodelist $nodes
48
49
50
51
            rm hostfile.o$SLURM_JOB_ID
          done

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