HP-MPI User's Guide (11th Edition)
Example applications
Appendix A 221
These examples and the Makefile are located in the $MPI_ROOT/help
subdirectory. The examples are presented for illustration purposes only.
They may not necessarily represent the most efficient way to solve a
given problem.
To build and run the examples follow the following procedure:
Step 1. Change to a writable directory.
io.c C Writes data for each
process to a separate
file called iodatax,
where x represents
each process rank
in turn. Then, the
data in iodatax is
read back.
-np >= 1
thread_safe.c C Tracks the number of
client requests
handled and prints a
log of the requests to
stdout.
-np >= 2
sort.C C++ Generates an array of
random integers and
sorts it.
-np >= 1
compute_pi_spawn.f Fortran 77 A single initial rank
spawns 3 new ranks
that all perform the
same computation as
in compute_pi.f
-np >= 1
ping_pong_clustertest.c C Identifies slower than
average links in your
high-speed
interconnect
-np >2
hello_world.c C Prints host name and
rank
-np >=1
Table A-1 Example applications shipped with HP-MPI (Continued)
Name Language Description -np argument