Exercise E1:
- Implement the program empty.c and run it.
- Observe the process list with the top command issued in another shell
(on a single processor machine only).
- What happens if you drop MPI_Init?
- What happens if you call MPI_Init twice?
- What happens if you drop MPI_Finalize?
Don't use too many processes here and check your process list with ps -e.
- Print all command line parameters before and after the MPI_Init call.
Run this modified program with
> mpirun -np 5 a.out x y z
Which process gets which parameters?
Back