gko::experimental::mpi::status#

Lightweight wrapper around MPI_Status. Returned by request::wait and the synchronous receive helpers, and used to query the number of elements actually received via get_count<T>(data).

struct status#

The status struct is a light wrapper around the MPI_Status struct.

Public Functions

inline status()#

The default constructor. It creates an empty MPI_Status

inline MPI_Status *get()#

Get a pointer to the underlying MPI_Status object.

Returns:

a pointer to MPI_Status object

template<typename T>
inline int get_count(const T *data) const#

Get the count of the number of elements received by the communication call.

Template Parameters:

T – The datatype of the object that was received.

Parameters:

data – The data object of type T that was received.

Returns:

the count