Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Oleg Morajko (olegmorajko_at_[hidden])
Date: 2007-10-31 15:20:18


I'm not sure if you understood my question. The case is not trivial at all
or I miss something important.
Try to design this derived datatype and you will understand my point.

Thanks anyway.

On 10/31/07, Amit Kumar Saha <amitsaha.in_at_[hidden]> wrote:
>
>
>
> On 10/31/07, Oleg Morajko <olegmorajko_at_[hidden]> wrote:
> >
> > Hello,
> >
> > I have the following problem. There areI two arrays somewere in the
> > program:
> >
> > double weights [MAX_SIZE];
> > ...
> > int values [MAX_SIZE];
> > ...
> >
> > I need to be able to send a single pair { weights [i], values [i] } with
> > a single MPI_Send call Or receive it directly into both arrays at at given
> > index i. How can I define a datatype that spans this pair over both arrays?
>
>
> Did you have a look at topics like - MPI derived data types, MPI packing?
> May be they can help.
>
> >
> >
>
>
> --
> Amit Kumar Saha
> *NetBeans Community Docs
> Contribution Coordinator*
> me blogs@ http://amitksaha.blogspot.com
> URL: http://amitsaha.in.googlepages.com
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>