arrayRun.sh 892 Bytes
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
aux=$(($i + 1))
echo "START TEST init=$aux"
19
20
21
22
23
24
for adr_perc in "${percs_array[@]}"
do

  for phy_dist in cpu node
  do

25
    for ibarrier_use in 3 #TODO Simplificar
26
27
28
29
30
31
32
33
34
    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
35
        numP=$(bash $dir$codeDir/recordMachinefile.sh $config_file) # Crea el fichero hostfile
36
        mpirun -f hostfile.o$SLURM_JOB_ID $dir$codeDir/bench.out $config_file $i
37
        rm hostfile.o$SLURM_JOB_ID
38
39
40
41
42
      done
    done  
  done
done
echo "END TEST"