25
25
*/
26
26
#define MPIX_CONT_REQBUF_VOLATILE 1<<0
27
27
28
- /**
29
- * the continuation is persistent (only valid with persistent requests)
30
- * TODO: not implemented yet
31
- */
32
- #define MPIX_CONT_PERSISTENT 1<<1
33
-
34
28
/*
35
- * mark the continuation request as poll-only, i.e., only execute continuations
29
+ * Mark the continuation request as poll-only, i.e., only execute continuations
36
30
* when testing/waiting for the continuation request to complete
37
31
*/
38
32
#define MPIX_CONT_POLL_ONLY 1<<2
39
33
40
- /* Wwhether the execution of continuations is deferred in MPI_Continue or
34
+ /* Whether the execution of continuations is deferred in MPI_Continue or
41
35
* MPI_Continueall if all operations are complete.
42
- * By default, continuations eligible for execution are invoked immediately. */
36
+ * By default, continuations eligible for execution are invoked immediately
37
+ * if the continuation request is active. */
43
38
#define MPIX_CONT_DEFER_COMPLETE 1<<3
44
39
45
40
/* whether failed continuations will be invoked and passed the error code
56
51
typedef int (MPIX_Continue_cb_function )(int rc , void * cb_data );
57
52
58
53
/**
59
- * Initialize a continuation request.
54
+ * Initialize a continuation request. The request can be used when attaching continuation to one or more
55
+ * operation requests (\sa MPIX_Continue and \sa MPIX_Continueall). The request must be active for
56
+ * continuation callbacks registered with it to be executed, i.e., the request must be started (e.g., using MPI_Start)
57
+ * before callbacks are executed.
58
+ *
60
59
* \param flags 0 or \ref MPIX_CONT_POLL_ONLY
61
60
* \param max_poll the maximum number of continuations to execute when testing
62
61
* the continuation request for completion or zero for
@@ -77,7 +76,7 @@ OMPI_DECLSPEC int MPIX_Continue_init(int flags, int max_poll, MPI_Info info, MPI
77
76
* \param request the request representing the the operation to attach a continuation to
78
77
* \param cb the callback to invoke upon completion, with signature \ref MPIX_Continue_cb_function
79
78
* \param cb_data the user-data to pass to the callback
80
- * \param flags 0 or OR-combination of \ref MPIX_CONT_REQBUF_VOLATILE, \ref MPIX_CONT_PERSISTENT,
79
+ * \param flags 0 or OR-combination of \ref MPIX_CONT_REQBUF_VOLATILE,
81
80
* \ref MPIX_CONT_DEFER_COMPLETE, \ref MPIX_CONT_INVOKE_FAILED
82
81
* \param status MPI_STATUS_IGNORE or a pointer to a status object that will be a filled before the callback is invoked
83
82
* \param cont_req a continuation request created through \ref MPIX_Continue_init
@@ -94,7 +93,7 @@ OMPI_DECLSPEC int MPIX_Continue(MPI_Request *request, MPIX_Continue_cb_function
94
93
* \param requests the requests representing the the operations to attach a continuation to
95
94
* \param cb the callback to invoke upon completion of all operations, with signature \ref MPIX_Continue_cb_function
96
95
* \param cb_data the user-data to pass to the callback
97
- * \param flags 0 or OR-combination of \ref MPIX_CONT_REQBUF_VOLATILE, \ref MPIX_CONT_PERSISTENT,
96
+ * \param flags 0 or OR-combination of \ref MPIX_CONT_REQBUF_VOLATILE,
98
97
* \ref MPIX_CONT_DEFER_COMPLETE, \ref MPIX_CONT_INVOKE_FAILED
99
98
* \param status MPI_STATUS_IGNORE or a pointer to a status object that will be a filled before the callback is invoked
100
99
* \param cont_req a continuation request created through \ref MPIX_Continue_init
0 commit comments