<< MPI_Initialized | Message Passing Interface | MPI_Probe >> |
[flag, stat, info] = MPI_Iprobe(rank, tag) |
[flag, stat, info] = MPI_Iprobe(rank, tag, comm) |
an integer value: source rank.
an integer value: message tag.
a MPI_Comm object.
an integer value: 1 if the message is ready to be received, 0 if it is not.
a struct: source rank, message tag, error, count, cancelled for the accepted message.
an integer value: 0 (MPI_SUCCESS) other value is an error.
Nonblocking test for a message.
mpiexec([modulepath('mpi'), '/examples/help_examples/MPI_Iprobe.m'], 4)
if ~MPI_Initialized()
MPI_Init();
end
comm = MPI_Comm_object();
world_rank = MPI_Comm_rank();
world_size = MPI_Comm_size();
[FLAG, STAT, INFO] = MPI_Iprobe(world_rank,1, comm)
if MPI_Initialized()
MPI_Finalize();
end
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET