Commit c82301c4 authored by Jakob Luettgau's avatar Jakob Luettgau
Browse files

Cleanup and include example logs.

parent 94573e9b
...@@ -7,7 +7,7 @@ all: ...@@ -7,7 +7,7 @@ all:
${CC} -o app_read -DREAD app.c ${CC} -o app_read -DREAD app.c
${CC} -o app_readAB_writeC app_rw_mpiio.c ${CC} -o app_readAB_writeC app_rw_mpiio.c
run: all run: clean all
./run.sh ./run.sh
clean: clean:
......
...@@ -117,14 +117,14 @@ int main(int argc, char **argv) { ...@@ -117,14 +117,14 @@ int main(int argc, char **argv) {
/* Each process writes 3 integers to the file region visible to it. /* Each process writes 3 integers to the file region visible to it.
* Note the file pointer will advance 3x4 bytes after this call. * Note the file pointer will advance 3x4 bytes after this call.
*/ */
err = MPI_File_write_all(fh, &buf[0], 300, MPI_CHAR, &status); err = MPI_File_write_all(fh, &buf[0], 1000, MPI_CHAR, &status);
CHECK_ERR(MPI_File_set_view); CHECK_ERR(MPI_File_set_view);
/* Each process continues to write next 7 integers to the file region /* Each process continues to write next 5 integers to the file region
* visible to it, starting from the file pointer updated from the previous * visible to it, starting from the file pointer updated from the previous
* write call. * write call.
*/ */
err = MPI_File_write_all(fh, &buf[3], 700, MPI_CHAR, &status); err = MPI_File_write_all(fh, &buf[3], 1000, MPI_CHAR, &status);
CHECK_ERR(MPI_File_set_view); CHECK_ERR(MPI_File_set_view);
/* close the file collectively */ /* close the file collectively */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment