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

ModSim ass4 taddeus: Added comparison script for sequential-parallel.

parent 21db2b12
#!/bin/bash
args=${@:2:$#}
./seq $args > out_seq.txt
#mpirun -np $1 ./par $args
bash par.sh $@
python combine.py $1 > out_par.txt
diff out_{seq,par}.txt
#!/bin/bash
NUM_PROCESSES=${1-4} # Default: 4 processes
RSH_AGENT=rsh
MPI_HOSTFILE=~/.mpirun.machines
PROGRAM_EXEC=./par
ARGS=sinus 1001 1 .01 1 1
#mpirun -np $NUM_PROCESSES ./par sinus 100 1 .01 1 1
mpirun -np $NUM_PROCESSES ./par sinus 50 1 .01 1 1
#mpirun -np $NUM_PROCESSES $PROGRAM_EXEC $ARGS
#mpirun -np $NUM_PROCESSES --mca pls_rsh_agent $RSH_AGENT \
# --hostfile $MPI_HOSTFILE $PROGRAM_EXEC
mpirun -np ${1-4} ./par ${@:2:$#}
#mpirun -np ${1-4} ./par sinus 100 1 .01 1 1
#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