Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Open MPI access the same file in parallel ?
From: David Zhang (solarbikedz_at_[hidden])
Date: 2011-03-10 00:37:23


It not about MPI but rather your system. Can your system read the same file
multiple times? Can you open the same file multiple times? The simplest
way to answer your question is to write a simple MPI program to test this.

On Wed, Mar 9, 2011 at 9:08 PM, Jack Bryan <dtustudy68_at_[hidden]> wrote:

> Thanks,
>
> I only need to read the file. And, all processes only to read the file only
> once.
>
> But, the file is about 200MB.
>
> But, my code is C++.
>
> Does Open MPI support this ?
>
> thanks
>
> ------------------------------
> From: solarbikedz_at_[hidden]
> Date: Wed, 9 Mar 2011 20:57:03 -0800
> To: users_at_[hidden]
> Subject: Re: [OMPI users] Open MPI access the same file in parallel ?
>
>
> Under my programming environment, FORTRAN, it is possible to parallel read
> (using native read function instead of MPI's parallel read function).
> Although you'll run into problem when you try to parallel write to the same
> file.
>
> On Wed, Mar 9, 2011 at 8:45 PM, Jack Bryan <dtustudy68_at_[hidden]> wrote:
>
> Hi,
>
> I have a file, which is located in a system folder, which can be accessed
> by all parallel processes.
>
> Does Open MPI allow multi processes to access the same file at the same
> time ?
>
> For example, all processes open the file and load data from it at the same
> time.
>
> Any help is really appreciated.
>
> thanks
>
> Jack
>
> Mar 9 2011
>
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
>
>
> --
> David Zhang
> University of California, San Diego
>
> _______________________________________________ users mailing list
> users_at_[hidden] http://www.open-mpi.org/mailman/listinfo.cgi/users
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>

-- 
David Zhang
University of California, San Diego