runAll.sh 807 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash

scriptDir="$(dirname "$0")"
source $scriptDir/config.txt
dirM="${dirBI}../SparseMatrix"
export dirBI

#matrix="tub100.rb"
#matrix="sherman2.rb"
matrix="HV15R.rb"


procs=(2 20 40 80 160)
msm=(0 1)
mss=(1 2)
mrm=(0 1)
is_syncs=(1 0)
qty=1
if [ $# -ge 1 ]
then
  qty=$1
fi

echo "$dirM/$matrix"
for proc in "${procs[@]}"
do
  echo "------------------------------------------run np=$proc next=0"
  for proc_c in "${procs[@]}"
  do
    if [ $proc -ne $proc_c ]
    then

      max_numP=$proc
      if [ "$proc_c" -gt "$proc" ];
      then
        max_numP=$proc_c
      fi
      node_qty=$(($max_numP / 20))
      if [ $node_qty -eq 0 ]
      then
        node_qty=1
      fi
      sbatch -p P1 -N $node_qty $dirBI/Exec/generalRun.sh $proc $dirM/$matrix $proc_c $qty
    fi
  done
done

echo "End"