HP-MPI Version 1.0 for Windows Release Note

HP-MPI V1.0 for Windows Release Note
Quick Sanity Check Test
28
> job add JOBID /numprocessors:1
/env:MPI_ROOT="%MPI_ROOT%"
/stdout:\path\to\a\shared\file.out
/stderr:\path\to\a\shared\file.err
path\submission_script.vbs
Where submission_script.vbs contains code such as:
Option Explicit
Dim sh, oJob, JobNewOut, appfile, Rsrc, I, fs
Set sh = WScript.CreateObject(“WScript.Shell”)
Set fs = CreateObject(“Scripting.FileSystemObject”)
Set oJob = sh.exec(“%MPI_ROOT%\bin\mpi_nodes.exe”)
JobNewOut = oJob.StdOut.Readall
Set appfile = fs.CreateTextFile(“<path>\appfile”, True)
Rsrc = Split(JobNewOut, “ “)
For I = LBound(Rsrc) + 1 to UBound(Rsrc) Step 2
appfile.WriteLine(“-h” + Rsrc(I) + “-np” + Rsrc(I+1) + _
“ ““<path>\foo.exe”” “)
Next
appfile.Close
Set oJob = sh.exec(“%MPI_ROOT%\bin\mpirun.exe -TCP -f _
““<path>\appfile”” “)
wscript.Echo oJob.StdOut.Readall
3. Submit the job as in the previous example:
> job submit /id:JOBID
The above example using submission_script.vbs is only an example. Other scripting
languages can be used to convert the output of mpi_nodes.exe into an appropriate appfile.