HP-MPI Version 1.1 for Windows Release Note
HP-MPI V1.1 for Windows Release Note
Building and running applications
40
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.
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.
Building and running on a Windows 2003/XP cluster using -hostlist
Perform Steps 1 and 2 from the previous section “Building and running on a single host” on
page 34.
Step 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:
For information on password and remote service, see Step 4 of the previous section.
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.