HP-MPI Version 1.1 for Windows Release Note

HP-MPI V1.1 for Windows Release Note
Building and running applications
36
Copyright Microsoft Corporation. All rights reserved.
/out:hello_world.exe
"/libpath:C:\Program Files (x86)\Hewlett-Packard\HP-MPI\lib"
/subsystem:console
libhpmpi64.lib
libmpio64.lib
hello_world.obj
Step 4. 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
Job queued, ID: 4288
Step 5. 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 4288 /numprocessors:1 ^
/stdout:\\node\path\to\a\shared\file.out ^
/stderr:\\node\path\to\a\shared\file.err "%MPI_ROOT%\bin\mpirun" ^
-ccp \\node\path\to\hello_world.exe
Step 6. Submit the job. The machine resources are allocated and the job is run.
> job submit /id:4288
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
CCS” on page 21. To create the executable, perform Steps 1 through 3 from the previous
section. Then continue with:
Step 1. Create a new job.
> job new /numprocessors:16
Job queued, ID: 4288
Step 2. Submit a script. Verify MPI_ROOT is set in the environment (See the mpirun man
page for more information):