#!/bin/bash

###########################################################
# replace the cmd below to run your own applications, 
# but you'd better do not change the parametters for the input random or powerlaw based graphs, and the sample strategy setting of msync
# e.g., you can change or add any configurations as you want before the option '--powerlaw_alpha $x'
###########################################################

i=60
while [ $i -le 160 ];
do
x=$(echo "scale=3;$i/40"|bc)
echo "mpiexec -f ~/mpd.hosts -n 4 ~/data/nfs/run-binary/pagerank_x --graph_opts ingress=grid --powerlaw_alpha $x  --engine msync --engine_opts sample=true"
mpiexec -f ~/mpd.hosts -n 4 ~/data/nfs/run-binary/pagerank_x --graph_opts ingress=grid --powerlaw_alpha $x  --engine msync --engine_opts sample=true
mpiexec -f ~/mpd.hosts -n 4 ~/data/nfs/run-binary/pagerank_x --graph_opts ingress=grid --powerlaw_alpha $x  --engine msync --engine_opts sample=true
i=$((i+1))
done


i=2
while [ $i -le 200 ]
do
echo "mpiexec -f ~/mpd.hosts -n 4 ~/data/nfs/run-binary/pagerank_x --graph_opts ingress=grid --random $i  --engine msync --engine_opts sample=true"
mpiexec -f ~/mpd.hosts -n 4 ~/data/nfs/run-binary/pagerank_x --graph_opts ingress=grid --random $i --engine msync --engine_opts sample=true
i=$((i+1))
done
