recordMachinefile.sh 486 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
8
9
10
11
12
13
14
15
16

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

if [ $dist == "node" ]; then
    dist=1
elif [ $dist == "cpu" ]; then
    dist=2
fi

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