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

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

dir="/home/martini/malleability_benchmark"
codeDir="/Codes"
ResultsDir="/Results"
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
19
20
#percs_array=(0 25 50 75 100)
percs_array=(0)
21
22
23
24
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
30
  for phy_dist in "${dist_array[@]}"
31
  do
32
    for ibarrier_use in "${at_array[@]}"
33
    do
34
35
36
37
      for cst in "${cst_array[@]}"
      do
        for css in "${css_array[@]}"
        do
38

39
40
41
          i=$(($i + 1))
          cd $name_dir/Run$i
          config_file="config$i.ini"
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
48
            mpirun -f hostfile.o$SLURM_JOB_ID $dir$codeDir/./bench.out $config_file $i $nodelist $nodes
49
50
51
52
            rm hostfile.o$SLURM_JOB_ID
          done

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