Wraps MPI_Request to provide object-oriented interface for non-blocking communication operations (isend, irecv)
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| logical, | private | :: | is_valid | = | .false. |
Validity flag |
|
| type(MPI_Request), | private | :: | m_request |
Internal MPI request handle |
Free the request
Frees the MPI request resources
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(request_t), | intent(inout) | :: | this |
Get underlying MPI_Request
Retrieves the underlying MPI_Request handle
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(request_t), | intent(in) | :: | this |
Check if request is null
Checks if the request is null/invalid
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(request_t), | intent(in) | :: | this |
type :: request_t !! Wraps MPI_Request to provide object-oriented interface for !! non-blocking communication operations (isend, irecv) private ! No initializer here, nor on win_t%m_win or comm_t%m_comm below. ! LFortran 0.66.0 cannot codegen a structure constructor used as a ! component default and throws "visit_StructConstructor() not ! implemented" once a program instantiates this module's procedures -- ! which is why the library builds under LFortran but nothing that links ! it does. Omitting it is equivalent: each of these handle types ! declares `v = 0` and each *_NULL is <Type>(0), so the initial state is ! unchanged. Do not reinstate without re-checking LFortran. type(MPI_Request) :: m_request !! Internal MPI request handle logical :: is_valid = .false. !! Validity flag contains procedure :: is_null => request_is_null !! Check if request is null procedure :: get => request_get !! Get underlying MPI_Request procedure :: free => request_free !! Free the request end type request_t