Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] Problem with MPI_Send and MPI_Recv
From: Sofia Aparicio Secanellas (saparicio_at_[hidden])
Date: 2008-09-16 12:15:59


Hello,

I am new using MPI. I want to run a simple program (I enclose the program) in 2 different computers. I have installed MPI in both computers. I have compiled the program using:

mpiCC -o PruebaSumaParalela.out PruebaSumaParalela.cpp

I have copied the executable PruebaSumaParalela.out to my /home directoy in both computers. Then I run:

mpirun -np 2 --host 10.4.5.123,edu_at_10.4.5.126 --prefix /usr/local ./PruebaSumaParalela.out

The 10.4.5.123 computer prints:

Inicio
Inicio
totalnodes:2
mynode:0
Inicio Recv
totalnodes:2
mynode:1
Inicio Send
sum:375250

The edu_at_10.4.5.126 computer prints:

Inicio
Inicio
totalnodes:2
mynode:1
Inicio Send
sum:375250
totalnodes:2
mynode:0
Inicio Recv

But the program does not finish on any computer. It seems that the Send and Recv does not work. Master computer is waiting to receive something that the slave does not send.
Do you know what the problem could be ?

Thank you very much.

Sofia

No virus found in this outgoing message
Checked by PC Tools AntiVirus (4.0.0.26 - 10.100.007).
http://www.pctools.com/free-antivirus/