Learn R Programming

Rmpi (version 0.7-2.1)

mpi.get.count: MPI_Get_count API

Description

mpi.get.count finds the length of a received message.

Usage

mpi.get.count(type, status = 0)

Value

the length of a received message.

Arguments

type

1 for integer, 2 for double, 3 for char.

status

a status number

Author

Hao Yu

Details

When mpi.recv is used to receive a message, the receiver buffer can be set to be bigger than the incoming message. To find the exact length of the received message, mpi.get.count is used to find its exact length. mpi.get.count must be called immediately after calling mpi.recv otherwise the status may be changed.

References

https://www.open-mpi.org/

See Also

mpi.send, mpi.recv, mpi.get.sourcetag, mpi.probe.