From: Pascal Proulx <pascal.proulx@cdott.com>
Newsgroups: comp.parallel.mpi
Subject: Re: Broadcast and Receive in MPI
Date: Mon, 15 Mar 1999 09:59:36 -0500
Organization: Computing Devices Canada
Message-Id: <36ED2058.F9D95E8B@cdott.com>
References: <7c11ba$i1b$1@news3.tufts.edu>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------1F1A592D449E78FC43EEF1B9"
Xref: ukc comp.parallel.mpi:4753


This is a multi-part message in MIME format.
--------------1F1A592D449E78FC43EEF1B9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

If you use MPI_Bcast to send a message, you need to use MPI_Bcast to
receive it on the slave processors.

Actually, the MPI_Bcast function uses a parameter that specifies the
sender of the message.  That process will send (Broadcast)  the data but
won't be receiving the data.  All the other processors of that
communicator (let's say MPI_COMM_WORLD) will receive that data.

For a good ref. see: Using MPI by Gropp, Lusk and Skjellum, chapter 3

Good luck!

Pascal


Sanpawat Kantabutra wrote:

> Hello,
> I am new to MPI and would like to know if I want my process to
> broadcast a message to the other processes, what MPI command should
> I use ? I tried to use bcast(...) with the broadcaster and use
> recieve(...) at the broadcastees but it did not work. Is this
> possibly a mismatch ? What is the right way to do it ? Any advice
> is appreciative. -Sanpawat
> ----------------------------------------
> Perpetual optimism is a force multiplier



--------------1F1A592D449E78FC43EEF1B9
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Pascal Proulx
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Pascal Proulx
n:              Proulx;Pascal
org:            Computing Devices Canada, a General Dynamic Company
email;internet: pascal.proulx@cdott.com
title:          Software Engineer
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


--------------1F1A592D449E78FC43EEF1B9--

