Nice job !
In the command for mpi (mpi_cmdexec) the <hosts> key is repalced by what is in the command mpi_hosts.
For instance, you may find:
mpi_cmdexec: /usr/bin/mpiexec <hosts> <ncsize> <wdir> <exename>
mpi_hosts -localonly
So since you are just writting up there the mpiexec command and its options, you can just have:
mpi_hosts: -machinefile /share/hostfile
... for example, where /share/hostfile is a text file with the list of the names of your nodes (you have to duplicate the name of a node if you wish to use more than one processor of that node). For instance:
gcl01
glc02
glc02
glc02
If I remember correctly mpiexec can also be used with the list of nodes in the command line, with -n 4 gcl01 glc02 glc02 glc02 for instance ...
Hope this help.
Sébastien.