recordMachinefile.sh 483 Bytes
Newer Older
1
2
#!/bin/bash

iker_martin's avatar
iker_martin committed
3
dir="/home/martini/malleability_benchmark/Codes/auxiliar_codes"
4
5
6
7

aux=$(grep "\[resize0\]" -n $1 | cut -d ":" -f1)
read -r ini fin <<<$(echo $aux)
diff=$(( fin - ini ))
8
9
numP=$(head -$fin $1 | tail -$diff | cut -d ';' -f1 | grep Procs | cut -d '=' -f2)
dist=$(head -$fin $1 | tail -$diff | cut -d ';' -f1 | grep Dist | cut -d '=' -f2)
10

11
if [ $dist == "spread" ]; then
12
    dist=1
13
elif [ $dist == "compact" ]; then
14
15
16
    dist=2
fi

iker_martin's avatar
iker_martin committed
17
$dir/Recordnodelist.o $numP $dist
18
echo $numP