LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Virgilio, Vincent (Vincent.Virgilio_at_[hidden])
Date: 2004-10-28 10:21:18


> -----Original Message-----
> From: lam-bounces_at_[hidden]
> [mailto:lam-bounces_at_[hidden]] On Behalf Of Brian A Powell
> Sent: Wednesday, October 27, 2004 11:26 AM
> To: lam_at_[hidden]
> Subject: LAM: MPI and GSL
>
>
>
> Hello,
>
> Is it possible to transmit gsl data-types (such as gsl_matrix and
> gsl_vector) via MPI_Send and MPI_Recv??
>
> Thanks,
> Brian
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>

For the audience, GSL = GNU Scientific Library, which, as I remember it,
has a C language API.

Brian,

1. If the GSL data types you need are just contiguous regions of bytes
with no embedded pointers.

2. And if you are working on a homogeneous cluster.

Then you might be able to communicate those typed objects by
MPI_Send/Recv with minimal overhead.

For example, extract a pointer to the start of a gsl_matrix, find the
sizeof that gsl_matrix, and pass these parameters, along with type
indicator MPI_BYTE, to MPI_Send/Recv. I leave the other parameters to
you.

Vince Virgilio

************************************
This e-mail and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this e-mail and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this e-mail.
************************************