<div>Thank for you reply. I found three collective open functions :Ad_opencoll.c (src\mpi\romio\adio\common):void ADIOI_GEN_OpenColl, Ad_opencoll_failsafe.c (src\mpi\romio\adio\common):void ADIOI_FAILSAFE_OpenColl and Ad_opencoll_scalable.c (src\mpi\romio\adio\common):void ADIOI_SCALEABLE_OpenColl.</div>
<div>Thx.<br></div>
<div class="gmail_quote">On Tue, May 1, 2012 at 7:43 AM, Rajeev Thakur <span dir="ltr"><<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">See romio/adio/ad_nfs/ad_nfs_open.c and romio/adio/common/ad_opencoll_scalable.c . In general, do a recursive grep for Open in the adio directory and you will find all of them.<br>
<div>
<div class="h5"><br><br>On Apr 24, 2012, at 3:57 AM, Ju JiaJia wrote:<br><br>> Hi all:<br>> I'm runing MPI app on two nodes with MPICH2. But without NFS, I copy the app file in which calls MPI_File_open to open a file in the current dir to the same location on all the nodes.<br>
> It failed in MPI_File_open when i run. I trace the code, It failed in MPI_File_open--->ADIO_Open----->ADIOI_OpenColl. ADIOI_OpenColl is a pointer to ADIOI_GEN_OpenColl.<br>> in which one process opens to create the file, all others open, by turning off ADIO_CREATE. So i understand why my app failed.<br>
><br>> But in MPI_File_open, some comments like this:<br>> /* actual opens start here */<br>> /* generic open: one process opens to create the file, all others open */<br>> /* nfs open: everybody opens or else you'll end up with "file not found"<br>
> * due to stupid nfs consistency semantics */<br>> /* scalable open: one process opens and broadcasts results to everyone */<br>> ADIOI_OpenColl(fd, rank, access_mode, error_code);<br>><br>> I searched all the source code and found ADIOI_GEN_OpenColl only.<br>
> So where is the other two open methods which mean nfs open and scalable open implemented?<br>> Does it mean i can only run MPI app in which calls MPI_File_open when all nodes can access the unique copy of the app file?<br>
><br>> My Engllish is not good, i hope you can understand what i say.<br>><br>> Any explanation will be appreciated.<br></div></div>> _______________________________________________<br>> mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> To manage subscription options or unsubscribe:<br>> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br><br>_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>To manage subscription options or unsubscribe:<br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>How are you doing?<br>