I have a problem which requires all process to have a copy of an array of data that is read in from a file (process 0).  I Bcast the array to all processes (using MPI_COMM_WORLD).  <br><br>I instrumented the code with some calls to Wtime to find the time consumed for different actions.  In particular, I was interested in comparing the time required for Bcast's vs. fread's.  The size of the array is 1,200,000 of type MPI_DOUBLE.  <br>
<br>For a 3 process run:<br><br>RANK = 0      fread_time = 2.323575<br><br>vs.<br><br>RANK = 2      bcast_time = 2.361233 <br>RANK = 0      bcast_time = 0.081910<br>RANK = 1      bcast_time = 2.399790<br><br>These numbers seem to indicate that Bcast-ing the data is as slow as reading the data from a file (on my Western Digital Passport USB drive).  Am I making a newbie mistake?<br>
<br>---John<br><br>PS> I'm using Fedora 16 (32 bit) notebook with a dual core AMD Phenom processor.<br>