HP-MPI Version 1.0 for Windows Release Note
HP-MPI V1.0 for Windows Release Note
Quick Sanity Check Test
27
Quick Sanity Check Test
Building and running on a single host
To run single host as a sanity check, use a command such as:
"%MPI_ROOT%\bin\mpirun" -np 2 .\hello_world.exe
Building and running multihost through CCP
To run using CCP:
1. Create a new job requesting the number of CPUs to use. Resources are not yet allocated,
but the job is given a JOBID number which is printed to stdout:
> job new /numprocessors:16
2. Add a single-CPU mpirun task to the newly created job. Note that mpirun will create more
tasks filling the rest of the resources with the compute ranks, resulting in a total of 16
compute ranks for this example:
> job add JOBID /numprocessors:1
/stdout:\path\to\a\shared\file.out
/stderr:\path\to\a\shared\file.err
"%MPI_ROOT%\bin\mpirun" -ccp \path\to\hello_world.exe
3. Submit the job. The machine resources are allocated and the job is run.
> job submit /id:JOBID
To run Multiple-Program Multiple-Data (MPMD) applications or other more complex
configurations that require further control over the application layout or environment,
dynamically create an appfile within the job using the utility
"%MPI_ROOT%\bin\mpi_nodes.exe" as in the following example. Note that the environment
variable %CCP_NODES% cannot be used for this purpose because it only contains the single CPU
resource used for the task that executes the mpirun command. See “Running HP-MPI from
CCP” on page 15:
1. Create a new job.
> job new /numprocessors:16
2. Submit a script. Verify MPI_ROOT is set in the environment (See the man page mpirun(1)
for more information):