Hello,
A couple of comments:
- if you can, although not essential, I would try using mpiexec rather than mpirun
- mpi_hosts should include a list of host names, space delimited. It does does not have to match the number of processor used -- the setup will loop through the list of host to associate hosts, even if you have one (automatically duplicating the same host name for all processes). Therefor you should have something like -machinefile <hostfile> in your runmpi command. However, since you set the hostfile in the runmpi command (without reference to <hostfile>) it does not matter in your case. What you did is just as valid.
- You need hpc_cmdexec to run the command qsub < <hpc_stdin> where <hpc_stdin> is replace by the content of hpc_stdin. Please uncomment this. As you can see in your case, the mpirun command is launched but not the HPC queue command.
Hope this helps,
Sébastien.