[mpich-discuss] read the same file on all processes

Kamaraju Kusumanchi kamaraju at gmail.com
Wed Oct 22 07:19:52 CDT 2008


I forgot to reply about the file system. The files are on ext3 file
system. The cluster is running centos release 5.

raju

On 10/21/08, Kamaraju Kusumanchi <kamaraju at gmail.com> wrote:
> of the order of 10MB. How does the approach change as the size
> increases/decreases?
>
> raju
>
> On Tue, Oct 21, 2008 at 10:10 PM, Rajeev Thakur <thakur at mcs.anl.gov> wrote:
>> How big is the file? What kind of file system is it on?
>>
>> Rajeev
>>
>>> -----Original Message-----
>>> From: owner-mpich-discuss at mcs.anl.gov
>>> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of
>>> Kamaraju Kusumanchi
>>> Sent: Tuesday, October 21, 2008 8:27 PM
>>> To: mpich-discuss at mcs.anl.gov
>>> Subject: [mpich-discuss] read the same file on all processes
>>>
>>> Hi all,
>>>
>>>     I have a file which needs to be read on all the processes
>>> of an MPI job. If I read the same file simultaneously on all
>>> the processes, will it cause any problems?
>>>
>>>     I can think of two other options such as
>>>
>>> - make multiple copies of the same file and read a separate
>>> file on different processes
>>> - read the file on rank 0 process, then use MPI_Bcast and
>>> transfer the contents across the remaining processes.
>>>
>>>    Which approach should be preferred? I am thinking this
>>> must be something encountered by others. So, if there is a
>>> book/web page which explains these kind of things, a pointer
>>> to them would be most appreciated.
>>>
>>> regards
>>> raju
>>>
>>>
>>
>>
>




More information about the mpich-discuss mailing list