HP-MPI Version 1.2 for Windows Release Note

1.8.6 Running with an Appfile Using HPCS
Using an appfile with HPCS has been greatly simplified in this release of HP-MPI. The previous
method of writing a submission script that uses mpi_nodes.exe to dynamically generate an
appfile based on the HPCS allocation is still supported. However, the preferred method is to
allow mpirun.exe to determine which nodes are required for the job (by reading the
user-supplied appfile), request those nodes from the HPCS scheduler, then submit the job to
HPCS when the requested nodes have been allocated. The user writes a brief appfile calling out
the exact nodes and rank counts needed for the job. For example:
Perform Steps 1 and 2 from “Building and Running on a Single Host” (page 25).
1. Create an appfile for running on nodes n01 and n02 as:
-h n01 -np 2 hello_world.exe -h n02 -np 2 hello_world.exe
2. Submit the job to HPCS with the following command:
X:\demo>mpirun -ccp -f appfile
3. Analyze hello_world output.
HP-MPI prints the output from running the hello_world executable in non-deterministic
order. The following is an example of the output.
Hello world! I'm 2 of 4 on n02
Hello world! I'm 1 of 4 on n01
Hello world! I'm 0 of 4 on n01
Hello world! I'm 3 of 4 on n02
More information about using appfiles is available in Chapter 3 of the HP-MPI User’s Guide.
1.8.7 Building and Running on a Windows 2008 Cluster Using -hostlist
Perform Steps 1 and 2 from the previous section “Building and Running on a Single Host”
(page 25).
1. Use the -cache password if this is your first run of HP-MPI on the node and in this user
account.
Use the -hostlist flag to indicate which hosts to run:
X:\demo> "%MPI_ROOT%\bin\mpirun" -cache -hostlist n01:2,n02:2
hello_world.exe
Password for MPI runs:
This example uses the -hostlist flag to indicate which nodes to run on. Also note that
the MPI_WORKDIR is set to your current directory. If this is not a network mapped drive,
HP-MPI is unable to convert this to a Universal Naming Convention (UNC) path, and you
must specify the full UNC path for hello_world.exe.
2. Analyze hello_world output.
HP-MPI prints the output from running the hello_world executable in non-deterministic
order. The following is an example of the output:
Hello world! I'm 1 of 4 on n01
Hello world! I'm 3 of 4 on n02
Hello world! I'm 0 of 4 on n01
Hello world! I'm 2 of 4 on n02
3. Any future HP-MPI runs can now use the cached password.
Any additional runs of ANY HP-MPI application from the same node and same user account
will not require a password:
X:\demo> "%MPI_ROOT%\bin\mpirun" -hostlist n01:2,n02:2 hello_world.exe
Hello world! I'm 1 of 4 on n01
Hello world! I'm 3 of 4 on n02
1.8 Building and Running Applications 29