LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Srinivasa Prade Patri (Srinivasa.Patri_at_[hidden])
Date: 2005-02-18 17:03:46


Hi !
Iam new to MPI and parallel programming and i want some clarifications on reading a input file and on MPI_BCAST subroutine.

Q1) I know there are two ways to have each processor read the input file
1) Let all the processes read the input file on a shared file system
2) Let one processor(pbly node 0) read the input from the file and BROADCAST it to all other processors.

I like to know which method is more efficient.

Q2) Iam using MPI_BCAST to send the input file to all processors. But how does MPI_BCAST works internally. My input file is 480Mb file. Is MPI_BCAST is advisable for broadcasting such large chunks of data .
If not what should be my best approach.

I would greatly appreciate your help.Thanking you.

Regards
Srinivasa Patri