runTrace.sh 1001 Bytes
Newer Older
1
dir="/home/martini/malleability_benchmark"
2
3
4
partition="P1"
exclude="c00,c01,c02"
procs=(2 10 20 40 80 120 160)
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
cores=20


#====== Do not modify these values =======

codeDir="/Codes/build"
execDir="/Exec"
ResultsDir="/Results"
use_extrae=1

#Extrae config
qty=1
outFileIndex=$2

if [ $# -ge 1 ]
then
  qty=$1
fi

for proc in "${procs[@]}"
do
  echo "------------------------------------------run np=$proc"

  node_qty=$(($proc / $cores))
  if [ $node_qty -eq 0 ]
  then
    node_qty=1
  fi

  config_file="test$proc"".ini"
  upper_dir="Proc$proc"
  mkdir $upper_dir
  cd $upper_dir
  for ((i=0; i<qty; i++))
  do
    # Move data to new directory
    lower_dir="Run$i"
    mkdir $lower_dir
    cd $lower_dir
44
45
    cp $dir$execDir/Extrae/extrae.xml .
    cp $dir$execDir/Extrae/trace.sh .
46
47
    cp ../../$config_file .

48
49
    #Execute test
    sbatch -p $partition --exclude=$exclude -N $node_qty $dir$execDir/generalRun.sh $dir $config_file $use_extrae $outFileIndex
50
51
52
53
54
55
    cd ..
  done
  cd ..

done
echo "End"