HP-MPI User's Guide (11th Edition)
Example applications
Appendix A220
$MPI_ROOT/help subdirectory in your HP-MPI product.
Table A-1 Example applications shipped with HP-MPI
Name Language Description -np argument
send_receive.f Fortran 77 Illustrates a simple
send and receive
operation.
-np >= 2
ping_pong.c C Measures the time it
takes to send and
receive data between
two processes.
-np = 2
ping_pong_ring.c C Confirms that an app
can run using the
desired interconnect
-np >= 2
compute_pi.f Fortran 77 Computes pi by
integrating
f(x)=4/(1+x
2
).
-np >= 1
master_worker.f90 Fortran 90 Distributes sections of
an array and does
computation on all
sections in parallel.
-np >= 2
cart.C C++ Generates a virtual
topology.
-np = 4
communicator.c C Copies the default
communicator
MPI_COMM_WORLD.
-np = 2
multi_par.f Fortran 77 Uses the alternating
direction iterative
(ADI) method on a
2-dimensional
compute region.
-np >= 1