HP-MPI Version 2.0 for Windows Release Note

2. Submit the job to HPCS with the following command:
X:\demo> mpirun -hpc -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.
9.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 39).
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
Hello world! I'm 0 of 4 on n01
Hello world! I'm 2 of 4 on n02
9.8 Running with a Hostfile Using HPCS
Perform Steps 1 and 2 from “Building and Running on a Single Host” (page 39).
1. Change to a writable directory on a mapped drive. The mapped drive must be to a shared
folder for the cluster.
2. Create a file "hostfile" containing the list of nodes on which to run:
n01
n02
n03
n04
9.7 Building and Running on a Windows 2008 Cluster Using -hostlist 43