[mpich-discuss] [discuss-mpich]Error while using mpirun

Tony Curtis anthony.curtis at stonybrook.edu
Mon Jan 4 18:07:24 CST 2021



> On Jan 4, 2021, at 11:59 AM, Hirakjyoti Sarma via discuss <discuss at mpich.org> wrote:
> 
> 
> Dear all,
> I get the following error while running LAMMPS on ubuntu without an internet connection.
> 
> Invalid error code (-2) (error ring index 127 invalid)
> Invalid error code (-2) (error ring index 127 invalid)
> INTERNAL ERROR: invalid error code fffffffe (Ring Index out of range) in MPID_nem_tcp_init:373
> Fatal error in PMPI_Init: Other MPI error, error stack:
> MPIR_Init_thread(586)..............: 
> MPID_Init(224).....................: channel initialization failed
> MPIDI_CH3_Init(105)................: 
> MPID_nem_init(324).................: 
> MPID_nem_tcp_init(175).............: 
> MPID_nem_tcp_get_business_card(401): 
> MPID_nem_tcp_init(373).............: gethostbyname failed, hirakjyoti-HP-dx2480-MT-KL969AV (errno 0)
> 
> But if the PC is  connected to internet LAMMPS successfully run. 
> How can i solve the problem?
> 

This looks like a local hostname resolution issue.  Maybe you could just add your hostname (presumably “hirakjyoti-……”) to the localhost entry in /etc/hosts and then when offline you’d resolve over loopback?  Assuming it’s a single machine.

tony

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20210104/70d48c82/attachment.html>


More information about the discuss mailing list