HP-MPI Version 1.1 for Windows Release Note
HP-MPI V1.1 for Windows Release Note
Submitting jobs
33
-hostlist <quoted-host-list>
Indicates what nodes to use for the job. This hostlist may be delimited with
spaces or commas. If spaces are used as delimiters anywhere in the hostlist,
it may be necessary to place the entire hostlist inside quotes to prevent the
command shell from interpreting it as multiple options.
-np N Indicates the number of ranks to execute. The -np option is required if none
of -f, -hostfile, or -hostlist have been specified.
When submitting a job, mpirun will set the job’s ‘working directory’ to the current directory or
MPI_WORKDIR if provided, with the assumption the resulting directory name will be valid
across the entire cluster. It will construct the stdout and stderr filenames from the root name
of the rank, and append the jobid and taskid to the filenames, with the extensions .out and
.err respectively.
The following is an example of submitting a job via the automatic submittal:
C:\> Documents and Settings\smith> "%MPI_ROOT%\bin\mpirun.exe" -ccp -np 6 ^
\\node\share\smith\HelloWorld.exe
mpirun: Submitting job to scheduler and exiting
Submitting job to ccp scheduler on this node
mpirun: Drive is not a network mapped - using local drive.
mpirun: HPMPI Job 1116 submitted to cluster mpiccp1
This will schedule and run 6 ranks of HelloWorld.exe. Standard output and standard error
are placed in the current directory, 'HelloWorld-1116.1.out' and 'HelloWorld-1116.1.err'
respectively.
The following example changes the directory to a share drive, and uses the current directory
as the work directory for the submitted job:
C:\> Documents and Settings\smith>s:
S:\> cd smith
S:\smith> "%MPI_ROOT%\bin\mpirun.exe" -ccp -np 6 -hostlist ^
mpiccp1,mpiccp2 HelloWorld.exe
mpirun: Submitting job to scheduler and exiting
Submitting job to ccp scheduler on this node
mpirun: HPMPI Job 1117 submitted to cluster mpiccp1
Here the 'S:' drive is interpreted as the mapped network drive. The rank HelloWorld.exe is
located in the current directory, and the stdout and stderr files are placed in the current
working directory.
In the example above, mpirun is instructed to run 6 ranks across the machines mpiccp1 and
mpiccp2 with the layout having ranks 0, 2, and 4 on mpiccp1 and ranks 1, 3, and 5 on
mpiccp2. So mpirun creates a CCP job allocation specifically requesting hosts mpiccp1 and
mpiccp2, and launches the task onto those nodes.