Re: [OMPI users] Similar question about MPI_Create_type

2010-02-08 Thread Jed Brown
On Mon, 08 Feb 2010 14:42:15 -0500, Prentice Bisbal wrote: > I'll give that a try, too. IMHO, MPI_Pack/Unpack looks easier and less > error prone, but Pacheco advocates using derived types over > MPI_Pack/Unpack. I would recommend using derived types for big structures, or perhaps for long-lived

Re: [OMPI users] Similar question about MPI_Create_type

2010-02-08 Thread Prentice Bisbal
Prentice Bisbal wrote: > I hit send to early on my last reply, please forgive me... > > Jed Brown wrote: >> On Mon, 08 Feb 2010 13:54:10 -0500, Prentice Bisbal wrote: >>> but I don't have that book handy >> The standard has lots of examples. >> >> http://www.mpi-forum.org/docs/docs.html > >

Re: [OMPI users] Similar question about MPI_Create_type

2010-02-08 Thread Prentice Bisbal
I hit send to early on my last reply, please forgive me... Jed Brown wrote: > On Mon, 08 Feb 2010 13:54:10 -0500, Prentice Bisbal wrote: >> but I don't have that book handy > > The standard has lots of examples. > > http://www.mpi-forum.org/docs/docs.html Thanks, I'll check out those example

Re: [OMPI users] Similar question about MPI_Create_type

2010-02-08 Thread Jed Brown
On Mon, 08 Feb 2010 13:54:10 -0500, Prentice Bisbal wrote: > but I don't have that book handy The standard has lots of examples. http://www.mpi-forum.org/docs/docs.html You can do this, but for small structures, you're better off just packing buffers. For large structures containing variable

[OMPI users] Similar question about MPI_Create_type

2010-02-08 Thread Prentice Bisbal
Hello, again MPU Users: This question is similar to my earlier one about MPI_Pack/Unpack, I'm trying to send the following structure, which has a dynamically allocated array in it, as a MPI derived type using MPI_Create_type_struct(): typedef struct{ int index; int* coords; }point; I woul