singleRun.sh 707 Bytes
Newer Older
1
2
#!/bin/bash

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

6
7
8
9
dir="/home/martini/malleability_benchmark"
codeDir="/Codes"
ResultsDir="/Results"

10
11
12
nodelist=$SLURM_JOB_NODELIST
nodes=$SLURM_JOB_NUM_NODES

13
14
15
module load mpich-3.4.1-noucx
echo "START TEST"

16
17
18
19
20
21
22
23
24
25
26
27
28
#$1 == configFile
#$2 == outFileIndex
#$3 == cantidad de ejecuciones

if [ $# -gt 2 ]
then
  qty=$3
else
  qty=1
fi

for ((i=0; i<qty; i++))
do
29
  echo "Iter $i"
30
  numP=$(bash $dir$codeDir/recordMachinefile.sh $1)
31
  mpirun -f hostfile.o$SLURM_JOB_ID $dir$codeDir/bench.out $1 $2 $nodelist $nodes
32
33
  rm hostfile.o$SLURM_JOB_ID
done
34
35

echo "END TEST"
36
sed -i 's/application called MPI_Abort(MPI_COMM_WORLD, -100) - process/shrink cleaning/g' slurm-$SLURM_JOB_ID.out