Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] How to test it
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2010-01-05 15:14:52

You might want to try something simpler than java to start with. For example:

mpirun -np 4 hostname

(where hostname is the POSIX command line app, not an MPI app)

You should see the hostnames from the first 4 hosts in your hostfile (assuming each one of them has 1 process slot). Then try running the samples that are in the examples/ directory in the Open MPI tarball (make sure that the example executables are available in the same location on every node). For example:

cd examples
mpirun -np 4 hello_c

That's a trivial C MPI application that is the MPI equivalent of "hello world".

On Jan 5, 2010, at 11:18 AM, Leonardo Machado Moreira wrote:

> Hi, I have created a cluster with openmpi this way.
> 1 - Configured SSH with authorized_keys from the server to the nodes.
> 2 - In /etc/openmpi-default-hostfile\ I have typed the IP of every nodes and the server.
> 3 - Afterward I have created a Java application of two threads just to type a text on the console and runned it by
> mpirun -1 java javaprogram
> or
> mpirun -2 java javaprogram
> It is on the ps -aux of the server but the nodes are still stoped.
> How can I know that my mpi is working
> Thanks a lot
> _______________________________________________
> users mailing list
> users_at_[hidden]

Jeff Squyres