Re: [OMPI users] MPI_File_write_ordered does not truncate files

2009-02-18 Thread Robert Latham
On Wed, Feb 18, 2009 at 02:44:09PM -0800, Brian Austin wrote: > I don't know whether this is the correct behavior, but it is the > correct origin of my confusion. > I suspected this would be attributed to the standard, but it is > contrary to what I'm used to with C's fopen: > I expected MPI_File_

Re: [OMPI users] MPI_File_write_ordered does not truncate files

2009-02-18 Thread Brian Austin
>>> MPI_File_open( MPI_COMM_WORLD, "foo.txt", >>> MPI_MODE_CREATE | MPI_MODE_WRONLY, >>> MPI_INFO_NULL, &fh ); > > > Since the file was opened with MPI_MODE_CREATE, shouldn't it have been > truncated so the prior contents were removed? I think that's the root > of the confu

Re: [OMPI users] MPI_File_write_ordered does not truncate files

2009-02-18 Thread Robert Latham
On Wed, Feb 18, 2009 at 02:24:03PM -0700, Ralph Castain wrote: > Hi Rob > > Guess I'll display my own ignorance here: > >>> MPI_File_open( MPI_COMM_WORLD, "foo.txt", >>>MPI_MODE_CREATE | MPI_MODE_WRONLY, >>>MPI_INFO_NULL, &fh ); > > > Since the file was opened with MPI_MODE

Re: [OMPI users] MPI_File_write_ordered does not truncate files

2009-02-18 Thread Ralph Castain
Hi Rob Guess I'll display my own ignorance here: MPI_File_open( MPI_COMM_WORLD, "foo.txt", MPI_MODE_CREATE | MPI_MODE_WRONLY, MPI_INFO_NULL, &fh ); Since the file was opened with MPI_MODE_CREATE, shouldn't it have been truncated so the prior contents were rem

Re: [OMPI users] MPI_File_write_ordered does not truncate files

2009-02-18 Thread Robert Latham
On Wed, Feb 18, 2009 at 11:10:51AM -0800, Brian Austin wrote: > >> Can you confirm - are you -really- using 1.1.2??? > >> > >> You might consider updating to something more recent, like 1.3.0 or > >>at least 1.2.8. It would be interesting to know if you see the same > >> problem. > > > Also, if yo

Re: [OMPI users] MPI_File_write_ordered does not truncate files

2009-02-18 Thread Brian Austin
>> Can you confirm - are you -really- using 1.1.2??? >> >> You might consider updating to something more recent, like 1.3.0 or >>at least 1.2.8. It would be interesting to know if you see the same >> problem. > Also, if you could include a short program that reproduces the > problem, that would be

Re: [OMPI users] MPI_File_write_ordered does not truncate files

2009-02-18 Thread Jeff Squyres
On Feb 18, 2009, at 11:17 AM, Ralph Castain wrote: Can you confirm - are you -really- using 1.1.2??? You might consider updating to something more recent, like 1.3.0 or at least 1.2.8. It would be interesting to know if you see the same problem. Also, if you could include a short program

Re: [OMPI users] MPI_File_write_ordered does not truncate files

2009-02-18 Thread Ralph Castain
Can you confirm - are you -really- using 1.1.2??? You might consider updating to something more recent, like 1.3.0 or at least 1.2.8. It would be interesting to know if you see the same problem. On Feb 15, 2009, at 3:27 PM, Brian Austin wrote: Hi, When I use MPI_File_write_ordered to ov

[OMPI users] MPI_File_write_ordered does not truncate files

2009-02-15 Thread Brian Austin
Hi, When I use MPI_File_write_ordered to overwrite an existing file, the new file is not truncated to the appropriate size. For example, if I first create a new file and write "aa" from two nodes, the file contains "". Then I close the file, and compute for a while. Later, I reopen the file wi