HP-MPI User's Guide (11th Edition)
Getting started
Getting started using Windows
Chapter 236
NOTE This is the default location on 64-bit machines. The location for 32-bit
machines is %ProgramFiles%\Hewlett-Packard\HP-MPI
The MPI application can now be built with HP-MPI.
The property page sets the following fields automatically, but can also be
set manually if the property page provided is not used:
• C/C++ — Additional Include Directories
Set to "%MPI_ROOT%\include\[32|64]"
• Linker — Additional Dependencies
Set to libhpmpi32.lib or libhpmpi64.lib depending on the
application.
• Additional Library Directories
Set to "%MPI_ROOT%\lib"
Building and running on a Windows 2003/XP cluster
using appfiles
The example shows the basic compilation and run steps to execute
hello_world.c on a cluster with 4-way parallelism. To build and run
hello_world.c on a cluster using an appfile, perform Steps 1 and 2 from
“Building and running on a single host” on page 31.
NOTE Specify the bitness using -mpi64 or -mpi32 for mpicc to link in the
correct libraries. Verify you are in the correct 'bitness' compiler window.
Using -mpi64 in a Visual Studio 32-bit command window will not work.
Step 1. Create a file "appfile" for running on nodes n01 and n02 as:
-h n01 -np 2 \\node01\share\path\to\hello_world.exe
-h n02 -np 2 \\node01\share\path\to\hello_world.exe
Step 2. For the first run of the hello_world executable, use -cache to cache your
password: