runBase.sh 772 Bytes
Newer Older
1
2
3
4
#!/bin/bash

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

7
dirM="/home/martini/SparseMatrix/"
8
dirCG="/home/martini/malleable_cg"
9
10
11
matrix="Queen_4147.rb"
#matrix="audikw_1.rb"
#matrix="bcsstk01.rsa"
12
13
14
15
16
17
18

module load /home/martini/MODULES/modulefiles/mpich-4.0.3-ofi

nodelist=$SLURM_JOB_NODELIST
nodes=$SLURM_JOB_NUM_NODES
cores=20
numP=$1
19
20
21
numC=$2
msm=$3
mrm=$4
22
mss=$5
23
24
send_sync=$6

25
26
27
28
29
qty=1
if [ $# -gt 6 ]
then
  qty=$7
fi
30

31
initial_nodelist=$(bash $dirCG/BashScripts/createInitialNodelist.sh $numP $cores $nodelist)
32
echo "Test numP=$numP numC=$numC Meths=$msm $mrm $mss -- Is_synch=$send_sync qty=$qty"
33
34
35
36
for ((i=0; i<qty; i++))
do
  mpirun -hosts $initial_nodelist -np $numP $dirCG/build/a.out $dirM/$matrix $numC $msm $mss $mrm $mss $send_sync $nodelist $nodes
done
37
echo "End"