runBase.sh 685 Bytes
Newer Older
iker_martin's avatar
iker_martin committed
1
2
#!/bin/bash

Iker Martín's avatar
Iker Martín committed
3
#SBATCH -p P1
4
#SBATCH -N 1
Iker Martín's avatar
Iker Martín committed
5
6
7
8
9
10
11
#SBATCH --exclude=c01,c00,c02

dir="/home/martini/malleability_benchmark"
codeDir="/Codes"

nodelist=$SLURM_JOB_NODELIST
nodes=$SLURM_JOB_NUM_NODES
iker_martin's avatar
iker_martin committed
12
13

echo "MPICH"
14
module load mpich-3.4.1-noucx
iker_martin's avatar
iker_martin committed
15
16
17
#export HYDRA_DEBUG=1
#-disable-hostname-propagation -disable-auto-cleanup -pmi-port -hosts n00,n01

18
numP=$(bash recordMachinefile.sh $1)
19

Iker Martín's avatar
Iker Martín committed
20
21
mpirun -print-all-exitcodes -f hostfile.o$SLURM_JOB_ID $dir$codeDir/a.out $1 $2 $nodelist $nodes
#mpirun -np $numP $dir$codeDir/a.out $1 $2 $nodelist $nodes
22
23
rm hostfile.o$SLURM_JOB_ID

24
echo "END RUN"
Iker Martín's avatar
Iker Martín committed
25
sed -i 's/application called MPI_Abort(MPI_COMM_WORLD, -100) - process/shrink cleaning/g' slurm-$SLURM_JOB_ID.out