Query file synchronization state¶
ss_file_synchronized
is a function defined in ssfile.c.
Synopsis:
-
htri_t
ss_file_synchronized
(ss_file_t *file)¶
Formal Arguments:
file
: An open file
Description: As detailed in ss_scope_synchronize, scopes may become out of sync across the MPI tasks that own them. This function queries all open scopes of the specified file to determine if any of them need to be synchronized, and may be faster than calling ss_file_synchronize even when all scopes are in a synchronized state.
Return Value: Returns true (positive) if all scopes of file
are currently synchronized; false if any scope needs to be
synchronized; negative on failure.
Parallel Notes: Collective across the file’s communicator.
See Also:
- ss_file_synchronize: 11.9: Synchronize all scopes of a file
- ss_scope_synchronize: 13.7: Synchronize a scope
- Files: Introduction for current chapter