<div dir="auto">Hi hui </div><div dir="auto"><br></div><div dir="auto">I tried your suggestion but looks like the newly spawned jobs are using ssh to distribute on the new hosts. Howver In my machine farm, ssh & rsh connections are disabled. have to submit through qsub network interface. Is using qsub possible in mpi_comm_spawn? </div><div dir="auto"><br></div><div dir="auto">Thanks a lot</div><div dir="auto">Shuwei</div><div><br><div class="gmail_quote"><div>On Mon, Nov 19, 2018 at 09:21 Zhou, Hui <<a href="mailto:zhouh@anl.gov">zhouh@anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, Nov 18, 2018 at 10:33:48PM -0600, Shuwei Zhao wrote:<br>
>2. About the MPI_Info object, I tried to use mpi_comm_spawn on the same<br>
>machine, it can work. But I don't know how to spawn processes cross<br>
>machines. For example, if I have 4 processes on machine 1, and I want to<br>
>spawn 4 more processes on other machines (resource managed by qsub), how do<br>
>I need to declare in the MPI_Info object?<br>
<br>
Did you try setting the host parameter in the info object? For <br>
example:<br>
<br>
MPI_Info info;<br>
MPI_Info_create(&info, "host", "A,B,C");<br>
<br>
MPI_Comm_spawn("worker", MPI_ARGV_NULL, n_hosts, info, 0, <br>
MPI_COMM_SELF, &comm_workers, MPI_ERRCODES_IGNORE)?<br>
<br>
MPI_Info_free(&info);<br>
<br>
Replace "A,B,C" with host name list that you want to spawn process on.<br>
<br>
-- <br>
Hui Zhou<br>
</blockquote></div></div>