📄 mpich_quiet.tex
字号:
\startmanpage\mantitle{MPICH{\tt \char`\_}Quiet}{tex}{10/7/2002}\manname{MPICH{\tt \char`\_}Quiet}--- Call a user-specified function when a communicator is quiet \subhead{Synopsis}\startvb\begin{verbatim}int MPICH_Quiet( MPID_Comm *comm, int (*checkpointfunction)(MPI_Comm *, void *), void *extra_data )\end{verbatim}\endvb\subhead{Input Parameters}\startarg{comm }{Pointer to a communicator}\startarg{checkpointfunction }{User function to call. The parameters are {\tt comm}and {\tt extra{\tt \char`\_}data}. }\startarg{extra{\tt \char`\_}data }{A pointer that is passed to {\tt checkpointfunction}.}\par\subhead{Return value}The function {\tt checkpointfunction} returns {\tt 0} on success and a negativeinteger on failure. This value is returned by {\tt MPICH{\tt \char`\_}Quiet}. If{\tt MPICH{\tt \char`\_}Quiet} fails for some other reason, it returns an MPI error code(a positive value).\par\subhead{Notes}This routine can be used to provide for checkpointing operations wherethe user and the MPI implementation together guarantee that no communicationis taking place, even by the low levels of the implementation, on thespecified communicator while {\tt checkpointfunction} is running. In addition,all communication is completed if possible. That is, if any {\tt MPI{\tt \char`\_}Request}(made in the specified communicator) given to {\tt MPI{\tt \char`\_}Test} would cause{\tt MPI{\tt \char`\_}Test} to return {\tt true} for the {\tt flag} value (i.e., the communicationdescribed by the request was completed), the communication must be completedbefore {\tt checkpointfunction} is called.\parThis is a collective call with semantics similiar to {\tt MPI{\tt \char`\_}Barrier}, withthe change that after all processes have entered {\tt MPICH{\tt \char`\_}Quiet}, theuser-specified function {\tt checkpointfunction} is called (collectively), andonce that routine returns, a process can leave {\tt MPICH{\tt \char`\_}Quiet}.\par\subhead{Question}An alternative to this is a variation on the two-phase collective routines,using a begin and end pair to bracket the quiet period. This allows theuser to call almost any function between the begin and end. One advantageto this approach is that it does not require that the user create astructure for the {\tt extra{\tt \char`\_}data}, and it can make it easier to handleproblems encountered during {\tt checkpointfunction} (e.g., out of disk spacewhile writing the checkpoint). This could be handled in a way similar toattribute copying in {\tt MPI{\tt \char`\_}Comm{\tt \char`\_}dup}, but this is more convenient than theMPI error handling.\par\subhead{Module}Extension\endmanpage
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -