Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] Running simple MPI program
From: David Zhang (solarbikedz_at_[hidden])
Date: 2010-10-23 00:58:33

your code works on mine machine. could be they way you build mpi.

On Fri, Oct 22, 2010 at 7:26 PM, Brandon Fulcher <minguo_at_[hidden]> wrote:

> Hi, I am completely new to MPI and am having trouble running a job between
> two cpus.
> The same thing happens no matter what MPI job I try to run, but here is a
> simple 'hello world' style program I am trying to run.
> #include <mpi.h>
> #include <stdio.h>
> int main(int argc, char **argv)
> {
> int *buf, i, rank, nints, len;
> char hostname[256];
> MPI_Init(&argc,&argv);
> MPI_Comm_rank(MPI_COMM_WORLD, &rank);
> gethostname(hostname,255);
> printf("Hello world! I am process number: %d on host %s\n", rank,
> hostname);
> MPI_Finalize();
> return 0;
> }
> On either CPU, I can successfully compile and run, but when trying to run
> the program using two CPUS it fails with this output:
> --------------------------------------------------------------------------
> mpirun noticed that the job aborted, but has no info as to the process
> that caused that situation.
> --------------------------------------------------------------------------
> With no additional information or errors, What can I do to go about
> finding out what is wrong?
> I have read the FAQ and followed the instructions. I can ssh into the
> slave without entering a password and have the libraries installed on both
> machines.
> The only thing pertinent I could find is this faq
> but I do
> not know if it applies since I have installed open mpi from the Ubuntu
> repositories and assume the libraries are correctly set.
> _______________________________________________
> users mailing list
> users_at_[hidden]

David Zhang
University of California, San Diego