arraySpawnRun.sh 679 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

#!/bin/bash

#SBATCH --exclude=n[06-07],c01

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

aux=$(($i + 1))
echo "START TEST init=$aux"

for phy_dist in cpu node
do
  i=$(($i + 1))
  cd $name_dir/Run$i
  config_file="config$i.ini"

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

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