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 #!/bin/bash
NUM_PROCESSES=${1-4} # Default: 4 processes mpirun -np ${1-4} ./par ${@:2:$#}
RSH_AGENT=rsh #mpirun -np ${1-4} ./par sinus 100 1 .01 1 1
MPI_HOSTFILE=~/.mpirun.machines #mpirun -np ${1-4} --mca pls_rsh_agent rsa \
PROGRAM_EXEC=./par # --hostfile ~/.mpirun.machines ./par ${@:2:$#}
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
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