runValgrind.sh 726 Bytes
Newer Older
iker_martin's avatar
iker_martin committed
1
2
3
4
5
6
#!/bin/bash

#SBATCH -p P1
#SBATCH -N 1
#SBATCH --exclude=c01,c00,c02

7
dir="/home/martini/malleability_benchmark"
iker_martin's avatar
iker_martin committed
8
codeDir="/Codes"
9
execDir="/Exec"
iker_martin's avatar
iker_martin committed
10

iker_martin's avatar
iker_martin committed
11
12
nodelist="localhost"
nodes=1
iker_martin's avatar
iker_martin committed
13
14
15
16
17
18
19
configFile=$1
outIndex=$2

echo "MPICH"
#module load mpich-3.4.1-noucx
#export HYDRA_DEBUG=1

20
numP=$(bash $dir$execDir/BashScripts/getNumPNeeded.sh $configFile 0)
21
mpirun -np $numP valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --trace-children=yes --log-file=nc.vg.%p $dir$codeDir/build/a.out $configFile $outIndex $nodelist $nodes
iker_martin's avatar
iker_martin committed
22
23
24

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