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

3
#SBATCH --exclude=c01,c00
4

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

module load mpich-3.4.1-noucx
echo "START TEST"

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

echo "END TEST"