It's on the to-do list to include some simple MPI examples in Open MPI.
Here's a sample C++ MPI program from the LAM MPI test suite. It creates
a bunch of different derived datatypes with the C++ MPI API:
Although it doesn't use these to send/receive, you can just use these
datatypes as the datatype argument in the various Send and Recv
functions with corresponding buffers that match the datatype.
> -----Original Message-----
> From: users-bounces_at_[hidden]
> [mailto:users-bounces_at_[hidden]] On Behalf Of Jose Quiroga
> Sent: Tuesday, June 13, 2006 8:54 PM
> To: users_at_[hidden]
> Subject: [OMPI users] OpenMPI C++ examples of user defined
> MPI types(inherited classes)?
> Hi everybody,
> Can anyone point me to some little C++ examples from
> which to get the main idea of sending/receiving
> messages containing user defined MPI types (MPI
> inherited classes?)?
> Thanks a lot.
> MPI and OpenMPI newbe.
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> users mailing list