There's huge differences between Open MPI v2.1.1 and v4.0.3 (i.e., years of 
development effort); it would be very hard to categorize them all; sorry!

What happens if you

    mpirun -np 1 touch /tmp/foo

(Yes, you can run non-MPI apps through mpirun)

Is /tmp/foo created?  (i.e., did the job run, and mpirun is somehow not 
terminating)



On Oct 21, 2020, at 12:22 PM, Jorge SILVA via users 
<users@lists.open-mpi.org<mailto:users@lists.open-mpi.org>> wrote:


Hello Gus,

 Thank you for your answer..  Unfortunately my problem is much more basic. I  
didn't try to run the program in both computers , but just to run something in 
one computer. I just installed the new OS an openmpi in two different 
computers, in the standard way, with the same result.

For example:

In kubuntu20.4.1 LTS with openmpi 4.0.3-0ubuntu

jorge@gcp26:~/MPIRUN$ cat hello.f90
 print*,"Hello World!"
end
jorge@gcp26:~/MPIRUN$ mpif90 hello.f90 -o hello
jorge@gcp26:~/MPIRUN$ ./hello
 Hello World!
jorge@gcp26:~/MPIRUN$ mpirun -np 1 hello    <---here  the program hangs with no 
output
^C^Cjorge@gcp26:~/MPIRUN$

The mpirun task sleeps with no output, and only twice ctrl-C ends the execution 
 :

jorge       5540  0.1  0.0  44768  8472 pts/8    S+   17:54   0:00 mpirun -np 1 
hello


In kubuntu 18.04.5 LTS with openmpi 2.1.1, of course, the same program gives

jorge@gcp30:~/MPIRUN$ cat hello.f90
 print*, "Hello World!"
 END
jorge@gcp30:~/MPIRUN$ mpif90 hello.f90 -o hello
jorge@gcp30:~/MPIRUN$ ./hello
 Hello World!
jorge@gcp30:~/MPIRUN$ mpirun -np 1 hello
 Hello World
jorge@gcp30:~/MPIRUN$


Even just typing mpirun hangs without the usual error message.

Are there any changes between the two versions of openmpi that I miss?  Some 
package lacking to mpirun ?

Thank you again for your help

Jorge

Le 21/10/2020 à 00:20, Gus Correa a écrit :
Hi Jorge

You may have an active firewall protecting either computer or both,
and preventing mpirun to start the connection.
Your /etc/hosts file may also not have the computer IP addresses.
You may also want to try the --hostfile option.
Likewise, the --verbose option may also help diagnose the problem.

It would help if you send the mpirun command line, the hostfile (if any),
error message if any, etc.


These FAQs may help diagnose and solve the problem:

https://www.open-mpi.org/faq/?category=running#diagnose-multi-host-problems
https://www.open-mpi.org/faq/?category=running#mpirun-hostfile
https://www.open-mpi.org/faq/?category=running

I hope this helps,
Gus Correa

On Tue, Oct 20, 2020 at 4:47 PM Jorge SILVA via users 
<users@lists.open-mpi.org<mailto:users@lists.open-mpi.org>> wrote:
Hello,

I installed kubuntu20.4.1 with openmpi 4.0.3-0ubuntu in two different
computers in the standard way. Compiling with mpif90 works, but mpirun
hangs with no output in both systems. Even mpirun command without
parameters hangs and only twice ctrl-C typing can end the sleeping
program. Only  the command

     mpirun --help

gives the usual output.

Seems that is something related to the terminal output, but the command
worked well for Kubuntu 18.04. Is there a way to debug or fix this
problem (without re-compiling from sources, etc)? Is it a known problem?

Thanks,

  Jorge



--
Jeff Squyres
jsquy...@cisco.com<mailto:jsquy...@cisco.com>

Reply via email to