On 3/25/12 5:22 PM, "Hameed Alzahrani" <ibn_aibaan_at_[hidden]> wrote:
> I installed open MPI on Linux cluster which consist of three machines. I want
> to ask how can I check that open MPI work correctly and is there a special
> configurations that I need to set to make the machines connect to each other
> because I just installed open MPI without making extra configurations.
Here's what we normally run:
1) mpirun [options] hostname
2) mpirun [options] hello_c
3) mpirun [options] ring_c
You'll need to figure out whether you need to specify any options in your
configuration. For simple cases, the options would just be
or however many processes you decide to run.
Running hostname uses MPI to run a non-MPI program, and it will show you
where MPI ran the processes.
Both hello_c and ring_c are included with Open MPI in the examples folder.
While they're both MPI programs, hello_c does no message passing, and ring_c
does some message passing.
If something is fatally broken in your MPI configuration, then hostname
won't run. If the MPI installation is correct, but your runtime environment
isn't set up right, hello_c will probably fail. If all of that works, but
ring_c fails, then there's a problem with your MPI or systems configuration.