next up previous index
Next: Program mkrandpfiles Up: MPI IO Previous: Exercises

Writing Sequential Files with MPI-IO

I have already mentioned that the semantics of MPI-IO are so nice, that it is tempting to use them even for ordinary sequential files. This program is almost the same as mkrandfiles, but it uses MPI-IO to write the files. It does more error checking than my previous MPI-IO examples, testing for potential errors both on open and on write. Any problems are handled without calling MPI_Abort. Where mkrandfiles called unlink to delete files in case there were problems either with open or with write, this program calls  MPI_File_Delete.



 

Zdzislaw Meglicki
2004-04-29