Commit 2b47c1a4 authored by Taddeüs Kroes's avatar Taddeüs Kroes

ModSim ass4 taddeus: Updated MPI scripts.

parent dd69ac78
......@@ -12,9 +12,6 @@ args="sinus 10000 1 $dx 1 2"
# Execute sequential program
/usr/bin/time -f "%e" -o $FILE ./seq $args
# Clear results file
#echo "" > $FILE
# Execute parallel program for different numbers of nodes
for (( i=2; i <= $1; i += $2 )); do
for j in `seq $REPEAT`; do
......
......@@ -3,8 +3,14 @@ if [ $# -lt 7 ]; then
echo "Usage: bash $0 NUM_PROCESSES INIT_METHOD TIME_STEPS LENGTH DX TAU N|XP"
exit 1
fi
mpirun -np ${1-4} ./par ${@:2:$#}
#mpirun -np ${1-4} \
# --hostfile ~/.mpirun.machines ./par ${@:2:$#}
# Build hosts string
hosts="edu20,edu21"
for i in `seq 3 $1`; do
hosts="$hosts,edu02`expr $i - 1`"
done
#mpirun -np ${1-4} ./par ${@:2:$#}
mpirun -mca plm_rsh_agent /usr/bin/rsh -n $1 -host $hosts ./par ${@:2:$#}
#mpirun -np ${1-4} --mca pls_rsh_agent rsa \
# --hostfile ~/.mpirun.machines ./par ${@:2:$#}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment