HP-MPI User's Guide (11th Edition)
Understanding HP-MPI
Running applications on Windows
Chapter 3106
-hostfile <filename>
Indicates what nodes to use for the job. This filename
should contain a list of nodes separated by spaces or
new lines.
-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.
Because it is important that the working directory be a UNC path of a
shared folder, HP-MPI will try to convert the mapped drive of the current
directory to a UNC path and set this to the working directory. If the user
is not in a mapped drive, HP-MPI cannot convert the drive to a UNC
path.
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 ^
-e MPI_WORKDIR=\\share\directory\smith ^
\\share\directory\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 working directory,
\\share\directory\smith, named HelloWorld-1116.1.out and
HelloWorld-1116.1.err respectively.