laplace.mpi_c.c
OR
laplace.mpi_f.f
laplace.mpi_c.output
for Nonconverging 1000 interations in C
OR
laplace.mpi_c3000.output
for Converging 3000 interations in C
OR
laplace.mpi_f.output
for Nonconverging 1000 interations in F90
OR
laplace.mpi_f.output
for Converging 4000 interations in F90
cpgm.job for C
OR
fpgm.job for F90
trap_mpi_c.c for C
OR
trap_mpi_f.f for F90
trap_mpi_c.output for C
OR
trap_mpi_f.output for F90
cc -O3 -h report=isvf -Xm -o cpgm cpgm.c &' for C
OR
`f90 -O3 -r3 -Xm -o fpgm fpgm.f &' for F90
`mpprun -n4 cpgm>cpgm.output&' for C
OR
`mpprun -n4 fpgm>fpgm.output&' for F90
but will run interactively with up to 7 processors.
pi_mpi.c for C
OR
pi_mpi.f for F90
pi_mpi.c.out for C
OR
pi_mpi.f.out for F90
pi_mpi.data for C or F90
cpgm.job;
for C
OR
fpgm.job;
for F90
See also some example using more than 4 processors (the 4 processor example is meant to be a test case):
cpgm8.job;
OR
fpgm16.job;
OR
cpgm32.job;
pi_mpi_t90.c
AND
pi_mpi_t90.f,
which have been modified by changing the "real*8" datatype to "double precision" to make the datatypes between F90 and MPI consistent to avoid wordsize errors (F90 datatypes differ between T90 and T3D), and the T3E "fprintf" synchronization error has been fixed.
"cp pi_mpi_t90.c cpgm.c"
OR
"cp pi_mpi_t90.f fpgm.f".
"cc -O3 -h scalar2 -h report=isvf -o cpgm cpgm.c &"
OR
"f90 -O3 -r3 -o fpgm fpgm.f &",
noting that the malleable "-Xm" or "-X[n]" processor number compiler option is not supported on the T90.
"mpirun -np 4 cpgm < cdata >& cpgm.output&"
OR
"mprun -np 4 fpgm < fdata >& fpgm.output&",
noting that the processor number option is "-np [n]" using the "mpirun" command which works on both T90 and T3E, but is different from the "mpprun" command which only works on the T3E; for executing on a different number of processors, just change "[n]" to the actual number.
"rm cpgm cpgm.V cpgm.output"
OR
"rm fpgm fpgm.lst fpgm.output"
or just repeated executions, you need just to remove the old output file:
"rm cpgm.output"
OR
"rm fpgm.output"
Email Comments or Questions to Professor Hanson