[mpich-discuss] MPI_Send and MPI_Bcast

msi msi at anl.gov
Wed Sep 7 08:18:38 CDT 2016

Hi Alaa,
Generally, for small number of processes, the performance of MPI_Bcast is usually equal to MPI_Isend/MPI_Recv, for large number of processes, broadcast should be better.
Could you please try the lateat version of MPICH on you system ? MPICH2 is very old. 
Please also give us following information.Number of processesNumber of processes per nodeThe execution time of each algorithm

Sent via my cell phone.

-------- Original message --------
From: alaa nashar <nashar_al at yahoo.com> 
Date: 9/7/2016  7:04 AM  (GMT-06:00) 
To: discuss at mpich.org 
Subject: [mpich-discuss] MPI_Send and MPI_Bcast 



I have
implemented the following two algorithms on my home Ethernet LAN containing 2/
and three heterogeneous devices using MPICH2.



1- Root
process reads the contents of an input array.

2- It
then sends the array data to all other processes.

3- All
processes including the root process perform specific

computations on their array copies.

4- Once
the computations within each process are finished,

the generated arrays are directly written by the process that

performed the computations to separate files.



Same as
Algorithm 1 except step 2 is replace by:

2- Root process broadcast the array data to all other processes.


implementation of both algorithms  work fine and give the expected results
but Algorithm2 that uses MIPI_Bcast is slower than Algorithm1 that uses


For my
knowledge, MIPI_Bcast is faster than MPI_Send.

would you guide me to know if there is any conflict of misunderstand.


a lot



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20160907/62d3fdcf/attachment.html>
-------------- next part --------------
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:

More information about the discuss mailing list