HP-MPI User's Guide (11th Edition)

Understanding HP-MPI
Examples of building on HP-UX and Linux
Chapter 364
Examples of building on HP-UX and Linux
This example shows how to build hello_world.c prior to running.
Step 1. Change to a writable directory that is visible from all hosts on which the
job will run.
Step 2. Compile the hello_world executable file.
% $MPI_ROOT/bin/mpicc -o hello_world \
$MPI_ROOT/help/hello_world.c
This example uses shared libraries, which is recommended.
HP-MPI also includes archive libraries which can be used by specifying
the appropriate compiler option.
NOTE HP-MPI uses the dynamic loader to interface with various interconnect
libraries. Therefore, dynamic linking is required when building
applications that will use HP-MPI.