<div dir="ltr"><div>Hi Hui. <br></div><div><br></div><div>
About the "special (or interactive) mode" would be great!
</div><div>In relation to your frontend-backend suggestion that you propose, having a "proxy" process in that way might be an important code restructuring which we just can't do at the moment. Thank you very much anyway. <br></div><div>Best regards,</div><div><br></div><div>Martín<br></div><div><br></div><div><br> </div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 25, 2020 at 12:58 PM Zhou, Hui <<a href="mailto:zhouh@anl.gov">zhouh@anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" lang="EN-US">
<div class="gmail-m_3748290675263565765WordSection1">
<p class="MsoNormal">Hi Martin, <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I see. Yeah, MPICH (or the project manager hydra) will not work with interactive programs nicely. It might be a potential interest to add a special mode that project manager do not try to take over the input/output. For now, is it possible
for your ncurse application to spawn a separate process (via `mpirun -n 1 …`) that can be used to spawn additional processes? I am thinking that your interactive part can be programmed as purely a frontend to your actual MPI processes.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">-- <br>
Hui Zhou<u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-color:rgb(181,196,223) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">Martín Morales <<a href="mailto:martineduardomorales@gmail.com" target="_blank">martineduardomorales@gmail.com</a>><br>
<b>Date: </b>Friday, September 25, 2020 at 9:09 AM<br>
<b>To: </b>"<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>>, "Zhou, Hui" <<a href="mailto:zhouh@anl.gov" target="_blank">zhouh@anl.gov</a>><br>
<b>Subject: </b>Re: [mpich-discuss] Spawns without mpirun<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">Hi again Hui. My apologies, I overlooked your singleton analogie with mpirun (<i>mpirun -n 1 ./prog...</i> ). Yes, in fact, it was one our first tries. These program we use is interactive and requires the
<i>ncurses </i>library for that. I read some time ago a known problem with Open MPI implementation and
<i>ncurses</i>. Unfortunately with MPICH we've experienced the same issue.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Martín<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, Sep 23, 2020 at 9:28 PM Martín Morales <<a href="mailto:martineduardomorales@gmail.com" target="_blank">martineduardomorales@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal">Hi Hui, thank you for your reply. Ok I'll create that issue then. We've a quite large PVM application. It has processes handling in a singleton fashion that it allows powerful functionality. We needed to port the PVM code to MPI in this
exact way to preserve that functionality. We've done this already but with the Open MPI implementation. However we've found some inconsistencies in it and that's why I'm querying about this feature in MPICH.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Martín<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, Sep 23, 2020 at 8:31 PM Zhou, Hui <<a href="mailto:zhouh@anl.gov" target="_blank">zhouh@anl.gov</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">It’s possible but not prioritized. Could you open an issue on github? When we have enough users requesting the feature (or when we have persistent user requesting it), the priority
may be escalated. <span style="font-family:"Apple Color Emoji"">😊</span> Meanwhile, could you describe the scenario that you have to use singleton init (vs. `mpirun -n 1 prog …`)?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">-- <br>
Hui Zhou<u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div style="border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in;border-color:currentcolor">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Martín Morales via discuss <<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><br>
<b>Reply-To: </b>"<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><br>
<b>Date: </b>Wednesday, September 23, 2020 at 3:49 PM<br>
<b>To: </b>"<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>" <<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><br>
<b>Cc: </b>Martín Morales <<a href="mailto:martineduardomorales@gmail.com" target="_blank">martineduardomorales@gmail.com</a>><br>
<b>Subject: </b>[mpich-discuss] Spawns without mpirun</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">Hi all!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I asked here some time ago about dynamically spawn processes from a singleton but the answer was that unfortunately, there was a problem with that and just It was not possible.
I wonder now if this functionality is available.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Martín<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<div id="gmail-m_3748290675263565765gmail-m_1177631403957384143gmail-m_-2867294404177808173DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<p class="MsoNormal"> <u></u><u></u></p>
<table style="border-style:solid none none;border-width:1pt medium medium;border-color:currentcolor" cellpadding="0" border="1">
<tbody>
<tr>
<td style="width:41.25pt;border:medium none;padding:9.75pt 0.75pt 0.75pt" width="55">
<p class="MsoNormal"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><span style="color:windowtext;text-decoration:none"><span style="color:blue"><img style="width: 0.4791in; height: 0.302in;" id="gmail-m_3748290675263565765gmail-m_1177631403957384143gmail-m_-2867294404177808173_x005f_x0000_i1025" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" width="46" height="29" border="0"></span></span></a><u></u><u></u></p>
</td>
<td style="width:352.5pt;border:medium none;padding:9pt 0.75pt 0.75pt" width="470">
<p class="MsoNormal" style="line-height:13.5pt">
<span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(65,66,78)">Virus-free.
<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank">
<span style="color:rgb(68,83,234)">www.avast.com</span></a> </span><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="color:white"> </span><u></u><u></u></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote></div>