Skip to content

Commit 88438f0

Browse files
committed
clarify ncmpi_sync can be called indpendently and collectively
1 parent f572ef6 commit 88438f0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/README.consistency.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,18 @@ Parallel and Distributed Systems, pp. 23-32, May 1999.
3939
supports only sequential I/O and thus has no collective file open per se.
4040

4141
If users would like a stronger consistency, they may consider using the code
42-
fragment below after each collective write API call (e.g.
43-
`ncmpi_put_vara_int_all`, `ncmpi_wait_all` `ncmpi_enddef`, `ncmpi_redef`,
44-
`ncmpio_begin_indep_data`, `ncmpio_end_indep_data`).
42+
fragment below after each collective/independent write API call (e.g.
43+
`ncmpi_put_vara_int`, `ncmpi_put_vara_int_all`, `ncmpi_wait_all`
44+
`ncmpi_enddef`, `ncmpi_redef`, `ncmpio_begin_indep_data`,
45+
`ncmpio_end_indep_data`, etc.).
4546
```
4647
ncmpi_sync(ncid);
4748
MPI_Barrier(comm);
4849
ncmpi_sync(ncid);
4950
```
5051
Users are warned that the I/O performance could become significantly slower.
52+
Note `ncmpi_sync` is a collective call and can be called in either collective
53+
or independent data mode.
5154

5255
### Note on header consistency in memory and file
5356
In data mode, changes to file header can happen in the following scenarios.

0 commit comments

Comments
 (0)