<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="">
I suspect the error was something else. `real.exe: error: _get_addr: No such file or directory` does look like a MPICH error. In fact, I suspect mpirun probably is from other package by not hydra, then there is probably some mis-matched assumptions.
<div class=""><br 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;">
T: 630-252-3430</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 17, 2018, at 12:31 PM, William Gropp <<a href="mailto:wgropp@illinois.edu" class="">wgropp@illinois.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I’m also at a loss to understand why "mpirun ./real.exe” would fail - if a -np xx argument is required, then mpirun should issue the error; if not, then a rational choice of default would be 1 process, and should behave as “mpirun -np 1 ./real.exe”.
<div class=""><br class="">
</div>
<div class="">Of course, it should be mpiexec instead of mpirun, but that shouldn’t matter.</div>
<div class=""><br class="">
</div>
<div class="">Bill</div>
<div class=""><br class="">
<div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="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;" class="">
William Gropp<br class="">
Director and Chief Scientist, NCSA<br class="">
Thomas M. Siebel Chair in Computer Science<br class="">
University of Illinois Urbana-Champaign</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>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Nov 15, 2018, at 1:01 PM, Gropp, William D via discuss <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta content="text/html; charset=utf-8" class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div dir="auto" class="">Yes, singleton is the ./real.exe below. At least that version should have worked.
<div dir="auto" class="">Bill</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Nov 14, 2018 2:00 PM, "Zhou, Hui" <<a href="mailto:zhouh@anl.gov" class="">zhouh@anl.gov</a>> wrote:<br type="attribution" class="">
</div>
</div>
<div class="">Hi Bill,
<div class=""><br class="">
</div>
<div class="">To clarify,  a singleton refers to a process started directly — such as ./real.exe, right? For the case of `mpirun ./real.exe`, or even `mpirun -np 1 ./real.exe`, is not technically a singleton, correct?</div>
<div class=""><br class="">
<div class="">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word;">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word;">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word;">
<div dir="auto" class="" style="word-wrap:break-word; line-break:after-white-space">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
— </div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
Hui Zhou</div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Nov 13, 2018, at 9:30 PM, William Gropp via discuss <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word">This is not quite true.  From the MPI standard:
<div class=""><br class="">
</div>
<div class="">
<blockquote type="cite" class="">
<div class="page" title="Page 428">
<div class="layoutArea">
<div class="column">
<p class=""><span class="" style="font-size:12pt; font-family:CMSS12">10.5.2 Singleton MPI</span><span class="" style="font-size:12pt; font-family:CMTT12">_</span><span class="" style="font-size:12pt; font-family:CMSS12">INIT</span></p>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite" class="">
<div class="page" title="Page 428">
<div class="layoutArea">
<div class="column">
<p class=""><span class="" style="font-family:CMR10; font-size:11pt">A high-quality implementation will allow any process (including those not started with a</span><span class="" style="font-size:6pt; font-family:CMR6; vertical-align:-1pt"> </span><span class="" style="font-size:11pt; font-family:CMR10">“parallel
 application” mechanism) to become an </span><span class="" style="font-size:11pt; font-family:CMSS10">MPI
</span><span class="" style="font-size:11pt; font-family:CMR10">process by calling
</span><span class="" style="font-size:11pt; font-family:CMSS10">MPI</span><span class="" style="font-size:11pt; font-family:CMTT10">_</span><span class="" style="font-size:11pt; font-family:CMSS10">INIT</span><span class="" style="font-size:11pt; font-family:CMR10">.
  </span></p>
</div>
</div>
</div>
</blockquote>
<div class=""><br class="webkit-block-placeholder">
</div>
<div class="">There was a time when MPICH could do this, and there were features in the original PMI to support this.</div>
<div class=""><br class="">
</div>
<div class="">Bill</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<div class="" style="word-wrap:break-word">
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
William Gropp<br class="">
Director and Chief Scientist, NCSA<br class="">
Thomas M. Siebel Chair in Computer Science<br class="">
University of Illinois Urbana-Champaign</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>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Nov 13, 2018, at 10:27 AM, Si, Min via discuss <<a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div bgcolor="#FFFFFF" class="">Hi Zhifeng,<br class="">
<br class="">
You have to always execute the MPI program by using mpirun or mpiexec with -np <number of processes>.<br class="">
<br class="">
At MPI_Init, the process tries to read information (e.g., MPI rank, number of processes) from the PMI server which is another process launched by the mpiexec command. This information is necessary for MPI library to initialize communication (e.g., connecting
 two processes).<br class="">
<br class="">
Best regards,<br class="">
Min<br class="">
<br class="">
<div class="moz-cite-prefix">On 2018/11/04 10:27, Zhifeng Yang via discuss wrote:<br class="">
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">Hi
<div class=""><br class="">
</div>
<div class="">After I installed mpich and used it in a FORTRAN code. There is an error while running this FORTRAN code called real.exe by using the following command</div>
<div class=""><br class="">
</div>
<div class="">$./real.exe</div>
<div class="">or</div>
<div class="">$mpirun ./real.exe</div>
<div class="">real.exe: error: _get_addr: No such file or directory</div>
<div class="">real.exe: error: _get_addr: No such file or directory</div>
<div class="">real.exe: error: _get_addr: No such file or directory</div>
<div class="">Fatal error in MPI_Init: Other MPI error, error stack:</div>
<div class="">MPIR_Init_thread(784).....:</div>
<div class="">MPID_Init(1323)...........: channel initialization failed</div>
<div class="">MPIDI_CH3_Init(120).......:</div>
<div class="">MPID_nem_init_ckpt(852)...:</div>
<div class="">MPIDI_CH3I_Seg_commit(364): PMI_Barrier returned -1</div>
<div class=""> </div>
<div class="">But while using mpirun with specifying number of processors. as follows</div>
<div class="">$mpirun -np 1 ./real.exe</div>
<div class="">There is no error any more. I am not sure why? do you have any explanation? Thank you very much</div>
<div class=""><br class="">
</div>
<div class="">Best regards</div>
<div class="">Zhifeng</div>
<div class=""><br class="">
</div>
</div>
</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset> <br class="">
<pre class="">_______________________________________________
discuss mailing list     <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a>
</pre>
</blockquote>
<br class="">
</div>
_______________________________________________<br class="">
discuss mailing list     <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
discuss mailing list     <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
_______________________________________________<br class="">
discuss mailing list     <a href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
To manage subscription options or unsubscribe:<br class="">
<a href="https://lists.mpich.org/mailman/listinfo/discuss" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>