Index of /examples/mpi/examples/Fortran
Example Programs
- Program to print the statement
"Hello, I am process X of Y processes"
where X is the current process while Y is the number of processes for job.
- Program to do the following:
On process 0, send a message "Hello, I am process 0" to other processes.
On each processe other than 0, print the process's ID, the message it receives
and where the message came from.
Program Compilation
- scc% mpif77 -o example1 example1.f -O3
- scc% mpif77 -o example2 example2.f -O3
Program Execution
- scc% mpirun -np 4 example1
- scc% mpirun -np 4 example2
Contact: Kadin Tseng, kadin@bu.edu
Dates
- Created: November 24, 2013
- Modified: