arrayRun.sh 885 Bytes
Newer Older
1
2
#!/bin/bash

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

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
percs_array=(0 25 50 75 100)

16
17
aux=$(($i + 1))
echo "START TEST init=$aux"
18
19
20
21
22
23
for adr_perc in "${percs_array[@]}"
do

  for phy_dist in cpu node
  do

24
    for ibarrier_use in 0 #TODO Simplificar
25
26
27
28
29
30
31
32
33
    do
      i=$(($i + 1))
      cd $name_dir/Run$i
      config_file="config$i.ini"

      echo "EXEC $procs_parents -- $procs_sons -- $adr_perc -- $ibarrier_use -- $phy_dist -- RUN $i"

      for index in 1 2 3
      do
34
        numP=$(bash $dir$codeDir/recordMachinefile.sh $config_file) # Crea el fichero hostfile
35
        mpirun -f hostfile.o$SLURM_JOB_ID -np $numP $dir$codeDir/bench.out $config_file $i
36
        rm hostfile.o$SLURM_JOB_ID
37
38
39
40
41
      done
    done  
  done
done
echo "END TEST"