HP-MPI Version 1.1 for Windows Release Note

HP-MPI V1.1 for Windows Release Note
Submitting jobs
32
Running HP-MPI from command line
To perform the same steps via command line, execute 3 commands:
1. job new [options]
2. job add JOBID mpirun [mpirun options]
3. job submit /id:JOBID
For example:
> job new /jobname:[example job]/numprocessors:12 /projectname:HPMPI
Job Queued, ID: 242
This will create a job resource and return a jobid, but not submit it.
> job add 242 /stdout:"\\node\share\%CCP_JOBNAME%-%CCPTASKCONTEXT%.out" ^
/stderr:"\\node\share\%CCP_JOBNAME%-%CCPTASKCONTEXT%.err" ^
"%MPI_ROOT%\bin\mpirun" -ccp -prot -netaddr 172.16.150.20/24 -TCP ^
\\node\share\rank.exe -arg1 -arg2
> job submit /id:242
Automatic job submittal
HP-MPI has added functionality which will automatically create, schedule, and submit an
mpirun command to the scheduler from the command line. Although this functionality is
limited, it is the easiest way to quickly start mpirun.
To have HP-MPI submit the mpirun to the CCS scheduler, type your mpirun command from
the command prompt, and include the -ccp flag. mpirun will detect it is not running in a CCS
job and will automatically submit the mpirun command to the scheduler.
Flags that have special meaning when doing so are as follows:
-e MPI_WORKDIR=<directory>
Used to indicate the working directory. The default is the current directory.
-f <appfile> Specifies a text file (appfile) that is parsed by mpirun and contains process
counts and a list of programs.
-hostfile <filename>
Indicates what nodes to use for the job. This filename should contain a list of
nodes separated by spaces or new lines.