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

Understanding HP-MPI
Running applications on Windows
Chapter 3 111
This example uses the -hostlist flag to indicate which nodes to run on.
Also note that the MPI_WORKDIR will be set to your current directory. If
this is not a network mapped drive, HP-MPI will not be able to convert
this to a Universal Naming Convention (UNC) path, and you will need to
specify the full UNC path for hello_world.exe.
Step 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
Step 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
Hello world! I'm 0 of 4 on n01
Hello world! I'm 2 of 4 on n02
Performing multi-CCS runs with the same resources
In some instances, such as when running performance benchmarks, it
will be necessary to perform multiple application runs against the same
set of CCS nodes. The following example is one method of accomplishing
this.
First, perform Steps 1 and 2 from “Building and running on a single
host” on page 31.
Step 1. Request a CCS allocation of sufficient size to run the required
application(s). Add the /rununtilcanceled option to have CCS
maintain the allocation until it is explicitly canceled.
> job new /numprocessors:8 /rununtilcanceled:true
Job queued, ID: 4288