<div dir="ltr"><div>I used <br></div><div><b>mpiexec -host <hostname> -n 2 /path/to/executable -in in.script <br></b></div><div><i><b><br></b></i></div><div><i><b><br></b></i></div><div><i><b>But the following error shows up:</b></i><br></div><div><b></b></div><div>I<i>nvalid error code (-2) (error ring index 127 invalid)<br>INTERNAL ERROR: invalid error code fffffffe (Ring Index out of range) in MPID_nem_tcp_init:373<br>Fatal error in PMPI_Init: Other MPI error, error stack:<br>MPIR_Init_thread(586)..............: <br>MPID_Init(224).....................: channel initialization failed<br>MPIDI_CH3_Init(105)................: <br>MPID_nem_init(324).................: <br>MPID_nem_tcp_init(175).............: <br>MPID_nem_tcp_get_business_card(401): <br>MPID_nem_tcp_init(373).............: gethostbyname failed, hirakjyoti-HP-dx2480-MT-KL969AV (errno 0)<br>Invalid error code (-2) (error ring index 127 invalid)<br>INTERNAL ERROR: invalid error code fffffffe (Ring Index out of range) in MPID_nem_tcp_init:373<br>Fatal error in PMPI_Init: Other MPI error, error stack:<br>MPIR_Init_thread(586)..............: <br>MPID_Init(224).....................: channel initialization failed</i><br><i>MPIDI_CH3_Init(105)................: <br>MPID_nem_init(324).................: <br>MPID_nem_tcp_init(175).............: <br>MPID_nem_tcp_get_business_card(401): <br>MPID_nem_tcp_init(373).............: gethostbyname failed, hirakjyoti-HP-dx2480-MT-KL969AV (errno 0)</i></div><div><i><br></i></div><div>I tried changing the <hostname> to localhost also but still it shows me the same error.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 5 Jan 2021 at 21:10, 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_-2135932356889062166WordSection1">
<p class="MsoNormal">Hi Hirakjyoti Sarma,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Note that your local hostname was “<b>hirakjyoti-HP-dx2480-MT-KL969AV</b>” according to your log. If you edit hosts file, you should simply add new entries rather than overwriting “localhost” because “localhost” is useful and maybe important
for some applications. There are a few options other than adding entries to hosts file. You could directly set hosts on command line, e.g. `mpiexec -hosts=localhost …`. There is also an environment variable for ch3 nemesis – you may try set `MPIR_CVAR_CH3_INTERFACE_HOSTNAME`
to e.g. “localhost”.<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" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Hirakjyoti Sarma via discuss <<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><br>
<b>Date: </b>Monday, January 4, 2021 at 10:38 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>Hirakjyoti Sarma <<a href="mailto:herockx1995@gmail.com" target="_blank">herockx1995@gmail.com</a>><br>
<b>Subject: </b>Re: [mpich-discuss] [discuss-mpich]Error while using mpirun<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal">I opened the hosts file by using Vi and changed "localhost" to " hirakjyoti---- " and then saved it and closed and then rebooted the PC. But even after that the problem persists.<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, 5 Jan 2021 at 10:04, Hirakjyoti Sarma <<a href="mailto:herockx1995@gmail.com" target="_blank">herockx1995@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>
<p class="MsoNormal">Its 3.3.2-build1<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, 5 Jan 2021 at 02:40, 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">Hi Hirakjyoti Sarma,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Could you identify the MPICH version?<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" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Hirakjyoti Sarma via discuss <<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><br>
<b>Date: </b>Monday, January 4, 2021 at 10:59 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>><br>
<b>Cc: </b>Hirakjyoti Sarma <<a href="mailto:herockx1995@gmail.com" target="_blank">herockx1995@gmail.com</a>><br>
<b>Subject: </b>[mpich-discuss] [discuss-mpich]Error while using mpirun</span><u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Dear all,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I get the following error while running LAMMPS on ubuntu <b>without an internet connection.</b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><b>Invalid error code (-2) (error ring index 127 invalid)<br>
Invalid error code (-2) (error ring index 127 invalid)<br>
INTERNAL ERROR: invalid error code fffffffe (Ring Index out of range) in MPID_nem_tcp_init:373<br>
Fatal error in PMPI_Init: Other MPI error, error stack:<br>
MPIR_Init_thread(586)..............: <br>
MPID_Init(224).....................: channel initialization failed<br>
MPIDI_CH3_Init(105)................: <br>
MPID_nem_init(324).................: <br>
MPID_nem_tcp_init(175).............: <br>
MPID_nem_tcp_get_business_card(401): <br>
MPID_nem_tcp_init(373).............: gethostbyname failed, hirakjyoti-HP-dx2480-MT-KL969AV (errno 0)</b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">But if the PC is connected to internet LAMMPS successfully run. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">How can i solve the problem?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Hirak<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote></div>