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

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

7
8
9
10
scriptDir="$(dirname "$0")"
source $scriptDir/config.txt
dirM="${dirCG}"
export dirCG
11
12
13
matrix="Queen_4147.rb"
#matrix="audikw_1.rb"
#matrix="bcsstk01.rsa"
14
15
16
17
18
19
20

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

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

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

33
initial_nodelist=$(bash $dirCG/BashScripts/createInitialNodelist.sh $numP $cores $nodelist)
34
echo "Test numP=$numP numC=$numC Meths=$msm $mrm $mss -- Is_synch=$send_sync qty=$qty"
35
36
37
38
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
39
echo "End"