generalRun.sh 660 Bytes
Newer Older
1
2
3
4
#!/bin/bash

#SBATCH -N 1
#SBATCH -p P1
5
#SBATCH -t 01:00:00
6

7
8
9
10
11
12
13
14
module load /home/martini/MODULES/modulefiles/mpich-4.0.3-ofi

nodelist=$SLURM_JOB_NODELIST
nodes=$SLURM_JOB_NUM_NODES
cores=20
numP=$1
matrix=$2
numC=$3
15
qty=$4
16
initial_nodelist=$(bash $dirCG/BashScripts/createInitialNodelist.sh $numP $cores $nodelist)
17
echo "Test numP=$numP numC=$numC -- qty=$qty"
18
19
for ((i=0; i<qty; i++))
do
20
  mpirun -hosts $initial_nodelist -np $numP $dirCG/build/a.out $matrix $numC
21
done
22
echo "End"
23
24
25

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