PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

problem with MPI communication

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
cablesb



Joined: 21 Jan 2010
Posts: 33

PostPosted: Thu Sep 06, 2012 12:28 pm    Post subject: problem with MPI communication Reply with quote

Have compiled an MPI code. Tried to run it. It failed as follows:

Code:
$ mpirun -np 2 ./a.out
ssh_exchange_identification: Connection closed by remote host
p0_24123:  p4_error: Child process exited while making connection to remote process on ode4: 0
p0_24123: (7.015625) net_send: could not write to fd=4, errno = 32


MPI was working on this machine recently. But there have been a couple of reboots and a re-install of PGI, so I guess something has changed. I ran into this in the distant past and found a solution. But the heck if I can remember, or find, what it that solution was. Anybody have any ideas? Thanks!
Back to top
View user's profile
cablesb



Joined: 21 Jan 2010
Posts: 33

PostPosted: Thu Sep 06, 2012 2:43 pm    Post subject: Reply with quote

If anybody cares about this, I finally got it. I had to edit
/opt/pgi/linux86-64/12.3/mpi/mpich/share/machines.LINUX and add the IP address -- not the hostname, but the numerical IP address -- of my machine, once for each processor. I remember this now from some time ago, and I think this points to some kind of problem with the system, so this is not a problem that everyone is going to have. But if you run into this and nothing else works, give it a try! Also, need to similarly edit
/opt/pgi/linux86/12.3/mpi/mpich/share/machines.LINUX
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6146
Location: The Portland Group Inc.

PostPosted: Fri Sep 07, 2012 7:50 am    Post subject: Reply with quote

This means that the node can resolve host names to IP address. Other solution are to add the host and IP address to at "/etc/hosts" file, or set-up an DNS or DHCP server.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group