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

3
#SBATCH -p P1
4
#SBATCH -N 1
5
#SBATCH --exclude=c01,c00,c02
iker_martin's avatar
iker_martin committed
6

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

10
11
12
nodelist=$SLURM_JOB_NODELIST
nodes=$SLURM_JOB_NUM_NODES

iker_martin's avatar
iker_martin committed
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

20
mpirun -print-all-exitcodes -f hostfile.o$SLURM_JOB_ID $dir$codeDir/a.out $1 $2 $nodelist $nodes
21
#mpirun -np $numP $dir$codeDir/a.out $1 $2 $nodelist $nodes
22
23
rm hostfile.o$SLURM_JOB_ID

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