generalRun.sh 710 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

#SBATCH -N 1
#SBATCH -p P1
#SBATCH -t 10:00:00



nodelist=$SLURM_JOB_NODELIST
nodes=$SLURM_JOB_NUM_NODES
cores=20
use_mat_file=1
numP=$1
matrix=$2
numC=$3
qty=$4
initial_nodelist=$(bash $dirBI/Exec/BashScripts/createInitialNodelist.sh $numP $cores $nodelist)
echo "Nodelist $nodelist -- Matrix = $matrix"
echo "Test numP=$numP numC=$numC -- qty=$qty"
for ((i=0; i<qty; i++))
do
  echo "Start BICG"
  mpirun -hosts $initial_nodelist -np $numP $dirBI/BiCGStab_Iker/BiCGStab $matrix $use_mat_file $numC
done
echo "End"

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