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@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
Inicio
Inicio
totalnodes:2
mynode:1
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