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

Getting started
Getting started using Windows
Chapter 230
Getting started using Windows
Configuring your environment
The default install directory location for HP-MPI for Windows is one of
the following directories:
On 64-bit Windows:
C:\Program Files (x86)\Hewlett-Packard\HP-MPI
On 32-bit Windows:
C:\Program Files \Hewlett-Packard\HP-MPI
The default install will define the system environment variable
MPI_ROOT, but will not put "%MPI_ROOT%\bin" in the system path or
your user path.
If you choose to move the HP-MPI installation directory from its default
location:
Change the system environment variable MPI_ROOT to reflect the
new location.
You may need to add "%MPI_ROOT%\bin\mpirun.exe",
"%MPI_ROOT%\bin\mpidiag.exe",
"%MPI_ROOT%\bin\mpisrvutil.exe", and
"%MPI_ROOT%\bin\mpid.exe" to the firewall exceptions depending
on how your system is configured.
HP-MPI must be installed in the same directory on every execution host.
To determine the version of an HP-MPI installation, use the -version
flag on the mpirun command:
C:\> "%MPI_ROOT%\bin\mpirun" -version
Compiling and running your first application
To quickly become familiar with compiling and running HP-MPI
programs, start with the C version of the familiar hello_world program.
This program is called hello_world.c and prints out the text string
"Hello world! I’m r of s on host" where r is a process’s rank, s is the size
of the communicator, and host is the host on which the program is run.