<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Zhifeng,<br>
<br>
You have to always execute the MPI program by using mpirun or mpiexec with -np <number of processes>.<br>
<br>
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>
<br>
Best regards,<br>
Min<br>
<br>
<div class="moz-cite-prefix">On 2018/11/04 10:27, Zhifeng Yang via discuss wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAF92WDOoKqXvb_VONzHeR4-vPz8P59QZE4V8EAbOyaVsRiM-CA@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">Hi
<div><br>
</div>
<div>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><br>
</div>
<div>$./real.exe</div>
<div>or</div>
<div>$mpirun ./real.exe</div>
<div>real.exe: error: _get_addr: No such file or directory</div>
<div>real.exe: error: _get_addr: No such file or directory</div>
<div>real.exe: error: _get_addr: No such file or directory</div>
<div>Fatal error in MPI_Init: Other MPI error, error stack:</div>
<div>MPIR_Init_thread(784).....:</div>
<div>MPID_Init(1323)...........: channel initialization failed</div>
<div>MPIDI_CH3_Init(120).......:</div>
<div>MPID_nem_init_ckpt(852)...:</div>
<div>MPIDI_CH3I_Seg_commit(364): PMI_Barrier returned -1</div>
<div> </div>
<div>But while using mpirun with specifying number of processors. as follows</div>
<div>$mpirun -np 1 ./real.exe</div>
<div>There is no error any more. I am not sure why? do you have any explanation? Thank you very much</div>
<div><br>
</div>
<div>Best regards</div>
<div>Zhifeng</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
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>
</body>
</html>