Kevin Hunter wrote:
> I have a set of 2 programs running as a master and slave.
>
> I have been using MPI_SEND to send data from the master to the slave,
> and using MPI_RECV in the slave to receive the data.
>
> I would like to use the MPI_BCAST function to send data to a number
> of slaves at once. If I use this, do I still use MPI_RECV in the
> slaves to read the data passed from the master ???
No, MPI_Bcast() does the sending on the master process _and_ the
receiving on the slave process(es).... very nice, one function call.
Regards,
Shaun
--
Shaun Cloherty
Graduate School of Biomedical Engineering
University of New South Wales
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text