Thank you.

 

At the URL I simply moved the 2 arguments for main signature, ie

int main(int argc, char *argv[])

{

  ...

}

and both mpicc and mpiCC generated an executeable for mpirun.

 

But mpiCC obviously does not like

int main(argc, argv)

int argc;

char *argv[];

{

  ...

}

 


From: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] on behalf of Jeremiah Willcock [jewillco@osl.iu.edu]
Sent: Wednesday, November 30, 2011 9:23 AM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] FW: BGL, MPI

On Wed, 30 Nov 2011, Neiderer, Andrew M USA CIV (US) wrote:

>
> With lots of help I think I am getting close to a "hello, world" BGL, MPI example to execute.
>
> Not sure about the error I am getting from execution  

I can't tell what you are getting the segmentation fault from.  Does a C
MPI program work (like the one from
http://www.dartmouth.edu/~rc/classes/intro_mpi/hello_world_ex.html) work?
If not, see the documentation for your MPI implementation (these types of
problems in C MPI code are often due to mismatched software versions).

-- Jeremiah Willcock