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

Understanding HP-MPI
Running applications on Windows
Chapter 3 107
The following example changes the directory to a share drive, and uses
the current directory as the work directory for the submitted job:
C:\> Documents and Settings\smith>s:
S:\> cd smith
S:\smith> "%MPI_ROOT%\bin\mpirun.exe" -ccp -np 6 ^
-hostlist mpiccp1,mpiccp2 HelloWorld.exe
mpirun: Submitting job to scheduler and exiting
Submitting job to ccp scheduler on this node
mpirun: HPMPI Job 1117 submitted to cluster mpiccp1
Here the 'S:' drive is interpreted as the mapped network drive. The rank
HelloWorld.exe is located in the current directory, and the stdout and
stderr files are placed in the current working directory.
In the example above, mpirun is instructed to run 6 ranks across the
machines mpiccp1 and mpiccp2 with the layout having ranks 0, 2, and 4
on mpiccp1 and ranks 1, 3, and 5 on mpiccp2. So mpirun creates a CCP
job allocation specifically requesting hosts mpiccp1 and mpiccp2, and
launches the task onto those nodes.
Running on CCS with an appfile
The preferred method of running CCS with an appfile 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 CCS
scheduler, then submit the job to CCS 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” on
page 31.
Step 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
Step 2. Submit the job to CCS with the following command:
X:\Demo> mpirun -ccp -f appfile
Step 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.