-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_scaling.sh
executable file
·34 lines (32 loc) · 1.27 KB
/
run_scaling.sh
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
#!/bin/bash
NP=$1
OUTPUT=$2
CELLS=$3
OPTIONS=${@:4}
INI=./parameters_lte.ini
if [ -n "${NP}" ] && [ -n "${OUTPUT}" ] && [ -n "${CELLS}" ] && [ -n "${OPTIONS}" ]; then
#
# shuffle the hostfile
#
shuf hostfile.ninestein > /tmp/.hostfile
#
# start MPI jobs for LTE network
#
mpirun --mca btl_tcp_if_include 192.168.1.0/24 --mca btl tcp,sm,self --host localhost -np 1 r.coverage ${OPTIONS} ini_file=${INI} tx_ini_sections=${CELLS} : --hostfile /tmp/.hostfile -np ${NP} ${HOME}/etc/dr/tun_par/prato/src/run_worker.sh ${OUTPUT}
#
# aggregate the partial prediction only if output is database
#
if [ "${OUTPUT}" = "-db" ]; then
AGG="$( { time ./aggregate.sh ${CELLS} ${INI} final_coverage; } 2>&1 )"
echo "${AGG}"
fi
else
echo "Usage: $0 [workers] [output] [comma-separated cell list] [module opts ...]"
echo "Runs the [r.coverage] tool module for the LTE network with the given parameters.-"
echo "[workers] Number of worker processes to start."
echo "[output] May be one of -db, -rast or - for standard output."
echo "[cell list] A comma-separated list of cell names."
echo "[module opts] Any combination of flags and options for the 'r.coverage' GRASS module. Help follows."
./r.coverage --help
exit -1
fi