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:

https://sourcehaven.osl.iu.edu/svn/trillium/trunk/lamtests/dtyp/datatype
_cxx.cc

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-boun...@open-mpi.org 
> [mailto:users-boun...@open-mpi.org] On Behalf Of Jose Quiroga
> Sent: Tuesday, June 13, 2006 8:54 PM
> To: us...@open-mpi.org
> 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.
> 
> JLQ.
> MPI and OpenMPI newbe.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
> 

Reply via email to