Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-MPI User's Guide > Chapter 3 Understanding HP-MPI

Examples of building on HP-UX and Linux

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

This example shows how to build hello_world.c prior to running.

  1. Change to a writable directory that is visible from all hosts on which the job will run.

  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.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1979-2007 Hewlett-Packard Development Company, L.P.