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

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

dirCG="/home/martini/malleable_cg"
8
9
10
11
12
13
14
15
16
17
18
19

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
20
is_sync=$8
21
qty=$9
22

23
initial_nodelist=$(bash $dirCG/BashScripts/createInitialNodelist.sh $numP $cores $nodelist)
24
25
26
27
28
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
29
echo "End"
30
31
32

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