generalRun.sh 778 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
15
16
17
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
msm=$4
mss=$5
mrm=$6
18
is_sync=$8
19
qty=$9
20

21
initial_nodelist=$(bash $dirCG/BashScripts/createInitialNodelist.sh $numP $cores $nodelist)
22
23
24
25
26
echo "Test numP=$numP numC=$numC Meths=$msm $mrm $mss -- Is_synch=$is_sync qty=$qty"
for ((i=0; i<qty; i++))
do
  mpirun -hosts $initial_nodelist -np $numP $dirCG/build/a.out $matrix $numC $msm $mss $mrm $mss $is_sync $nodelist $nodes
done
27
echo "End"
28
29
30

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