Yet Another eXchange Tool 0.11.3
|
functions to create collection of request handles augmented with user-defined buffer More...
Go to the source code of this file.
Typedefs | |
typedef void(* | Xt_fill_ebuf_requests) (Xt_request requests_msgs, MPI_Request *requests, void *ebuf, void *data, MPI_Comm comm) |
typedef void(* | Xt_request_msgs_ebuf_finalizer) (Xt_request request_msgs, void *ebuf) |
Functions | |
Xt_request | xt_request_msgs_ebuf_new (int n_requests, size_t extra_buf_size, Xt_fill_ebuf_requests init, void *data, Xt_request_msgs_ebuf_finalizer finalize, MPI_Comm comm) |
Xt_request | xt_request_msgs_ebuf_custom_new (int n_requests, size_t extra_buf_size, Xt_fill_ebuf_requests init, void *data, Xt_request_msgs_ebuf_finalizer finalize, MPI_Comm comm, Xt_config config) |
functions to create collection of request handles augmented with user-defined buffer
Definition in file xt_request_msgs_ebuf.h.
typedef void(* Xt_fill_ebuf_requests) (Xt_request requests_msgs, MPI_Request *requests, void *ebuf, void *data, MPI_Comm comm) |
function called after the xt_request_msgs_ebuf object has been created to actually create the requests
requests_msgs | handle of requests just created |
requests | points to requests array which must be initialized in this function |
ebuf | points to memory of extra_buf_size chars, aligned like a data pointer |
data | passes on the paramter of the same name to xt_request_msgs_ebuf_new |
comm | MPI communicator to use for error reporting |
Definition at line 69 of file xt_request_msgs_ebuf.h.
typedef void(* Xt_request_msgs_ebuf_finalizer) (Xt_request request_msgs, void *ebuf) |
signature of function to be called after all requests of the xt_request_msgs_ebuf object have finished
Definition at line 79 of file xt_request_msgs_ebuf.h.
Xt_request xt_request_msgs_ebuf_custom_new | ( | int | n_requests, |
size_t | extra_buf_size, | ||
Xt_fill_ebuf_requests | init, | ||
void * | data, | ||
Xt_request_msgs_ebuf_finalizer | finalize, | ||
MPI_Comm | comm, | ||
Xt_config | config ) |
customizable constructor for message request handle
[in] | n_requests | number of entries in requests array |
[in] | extra_buf_size | amount of extra bytes to allocate and make available to init |
[in] | init | function to call before returning which will then initialize the requests array completely and the extra buffer as needed |
[in] | data | pointer to caller-defined additional information needed by and passed to init |
[in] | finalize | pointer to function to call when deleting the request handle object (because all requests are finished) |
[in] | comm | MPI communicator |
[in] | config | configuration object handle |
Definition at line 153 of file xt_request_msgs_ebuf.c.
Xt_request xt_request_msgs_ebuf_new | ( | int | n_requests, |
size_t | extra_buf_size, | ||
Xt_fill_ebuf_requests | init, | ||
void * | data, | ||
Xt_request_msgs_ebuf_finalizer | finalize, | ||
MPI_Comm | comm ) |
constructor for message request handle associated with extra buffer
[in] | n_requests | number of requests needed |
[in] | extra_buf_size | amount of extra bytes to allocate and make available to init |
[in] | init | function to call before returning which will then initialize the requests array completely and the extra buffer as needed |
[in] | data | pointer to caller-defined additional information needed by and passed to init |
[in] | finalize | pointer to function to call when deleting the request handle object (because all requests are finished) |
[in] | comm | MPI communicator |
Definition at line 142 of file xt_request_msgs_ebuf.c.