<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Shuwei,
<div class=""><br class="">
</div>
<div class="">Were you able to run over multiple hosts directly, e.g.:</div>
<div class=""><br class="">
</div>
<div class="">```</div>
<div class="">$ mpiexec -n 2 -hosts “hostname_1,hostname_2” ./cpi</div>
<div class="">```</div>
<div class="">?</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
— </div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
Hui Zhou</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br class="">
</div>
<br class="Apple-interchange-newline">
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Nov 28, 2018, at 3:33 PM, Shuwei Zhao <<a href="mailto:shuweizhao1991@gmail.com" class="">shuweizhao1991@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="auto" class="">Hi hui </div>
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">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" class=""><br class="">
</div>
<div dir="auto" class="">Thanks a lot</div>
<div dir="auto" class="">Shuwei</div>
<div class=""><br class="">
<div class="gmail_quote">
<div class="">On Mon, Nov 19, 2018 at 09:21 Zhou, Hui <<a href="mailto:zhouh@anl.gov" class="">zhouh@anl.gov</a>> wrote:<br class="">
</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 class="">
>2. About the MPI_Info object, I tried to use mpi_comm_spawn on the same<br class="">
>machine, it can work. But I don't know how to spawn processes cross<br class="">
>machines. For example, if I have 4 processes on machine 1, and I want to<br class="">
>spawn 4 more processes on other machines (resource managed by qsub), how do<br class="">
>I need to declare in the MPI_Info object?<br class="">
<br class="">
Did you try setting the host parameter in the info object? For <br class="">
example:<br class="">
<br class="">
MPI_Info info;<br class="">
MPI_Info_create(&info, "host", "A,B,C");<br class="">
<br class="">
MPI_Comm_spawn("worker", MPI_ARGV_NULL, n_hosts, info, 0, <br class="">
MPI_COMM_SELF, &comm_workers, MPI_ERRCODES_IGNORE)?<br class="">
<br class="">
MPI_Info_free(&info);<br class="">
<br class="">
Replace "A,B,C" with host name list that you want to spawn process on.<br class="">
<br class="">
-- <br class="">
Hui Zhou<br class="">
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>