Created
December 4, 2012 16:07
-
-
Save nickgian/4205587 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Give the Job a descriptive name | |
#PBS -N lab1 | |
## Output and error files | |
#PBS -o parallel_test.out | |
#PBS -e parallel_test.err | |
## Limit memory, runtime etc. | |
#PBS -l walltime=01:00:00 | |
#PBS -l pmem=100mb | |
## How many nodes:processors_per_node should we get? | |
#PBS -l nodes=4:ppn=4 | |
## Start | |
##echo "PBS_NODEFILE = $PBS_NODEFILE" | |
##cat $PBS_NODEFILE | |
## Run the job (use full paths to make sure we execute the correct thing) | |
## NOTE: Fix the path to show to your executable! | |
/usr/local/open-mpi/bin/mpirun -x MX_RCACHE=8 --mca btl tcp,self -np 32 --bynode \ | |
## Seed for matrix generation | |
s = 4 | |
for i in 1000 2000 | |
do | |
/home/parallel/parlab06/lab1/serial/gauss $i $s | |
export OMP_NUM_THREADS=4 | |
/home/parallel/parlab06/lab1/omp/omp_gauss $i $s | |
for p in 2 4 8 | |
do | |
/usr/local/open-mpi/bin/mpirun --bynode -np $p --mca btl self,tcp /home/parallel/parlab06/lab1/ptp/continuous/mpi_gauss_cont $i $s | |
/usr/local/open-mpi/bin/mpirun --bynode -np $p --mca btl self,tcp /home/parallel/parlab06/lab1/broadcast/continuous/gauss_broadcast_continuous $i $s | |
/usr/local/open-mpi/bin/mpirun --bynode -np $p --mca btl self,tcp /home/parallel/parlab06/lab1/ptp/cycle/mpi_gauss_cycle $i $s | |
/usr/local/open-mpi/bin/mpirun --bynode -np $p --mca btl self,tcp /home/parallel/parlab06/lab1/broadcast/cycle/gauss_broadcast_cycle $i $s | |
done; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment