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

3
#SBATCH --exclude=c02,c01,c00
4

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

9
10
11
nodelist=$SLURM_JOB_NODELIST
nodes=$SLURM_JOB_NUM_NODES

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

15
16
17
18
19
20
21
22
23
24
25
26
27
#$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
28
  echo "Iter $i"
29
  numP=$(bash $dir$codeDir/recordMachinefile.sh $1)
30
  mpirun -f hostfile.o$SLURM_JOB_ID $dir$codeDir/bench.out $1 $2 $nodelist $nodes
31
32
  rm hostfile.o$SLURM_JOB_ID
done
33
34

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