#!/bin/tcsh
#PBS -l walltime=00:10:00
#PBS -l nodes=128:ppn=2
#PBS -A 68917/01.031

date
# Run using newault compiler/MPI configuration.
module switch mpi mpi/openmpi-1.2.1_ofed_intel-9.1-f045-c049

mpicxx -o newcommdup commdup.c
mpiexec -np 1 newcommdup > newdup01
mpiexec -np 2 newcommdup > newdup02
mpiexec -np 4 newcommdup > newdup04
mpiexec -np 8 newcommdup > newdup08
mpiexec -np 16 newcommdup > newdup16
mpiexec -np 32 newcommdup > newdup32
mpiexec -np 64 newcommdup > newdup64
mpiexec -np 128 newcommdup > newdup128
mpiexec -np 256 newcommdup > newdup256

mpicxx -o newcommsplit commsplit.c
mpiexec -np 1 newcommsplit > newsplit01
mpiexec -np 2 newcommsplit > newsplit02
mpiexec -np 4 newcommsplit > newsplit04
mpiexec -np 8 newcommsplit > newsplit08
mpiexec -np 16 newcommsplit > newsplit16
mpiexec -np 32 newcommsplit > newsplit32
mpiexec -np 64 newcommsplit > newsplit64
mpiexec -np 128 newcommsplit > newsplit128
mpiexec -np 256 newcommsplit > newsplit256

date
