![]() |
Blitz Support : |
From: Virgilio, Vincent (Vincent.Virgilio_at_[hidden])
Date: 2004-08-16 09:46:23
> -----Original Message-----
> From: blitz-support-bounces_at_[hidden]
> [mailto:blitz-support-bounces_at_[hidden]] On Behalf Of
> Olivier Saut
> Sent: Saturday, August 14, 2004 6:03 AM
> To: Support list for Blitz++
> Subject: [Blitz-support] Blitz++ and MPI broadcasting
>
>
> Hi all,
>
> I am trying to run a computation across several workstations
> using MPI.
> I use the method MPI_Allgatherv to broadcast an
> Array<double,2> to the
> processors.
> This method takes a double* pointing to the data to share between the
> processors.
>
> Is there a way to obtain a pointer to the double in
> Array<double,2> to
> avoid copying the data in a malloc'ed double* before calling
> MPI_Allgatherv.
>
> Thanks a lot,
>
>
> - Olivier
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>
Hi Olivier,
There is Array<double, 2>.data(), which should return double*. I
frequently use this to cast around Blitz++ data in MPI buffers, sans
copy.
Vince Virgilio
************************************
This email 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 email
in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc.
The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this
email.
************************************