If MPI_Probe() encounters an error causing it to exit with the 'status.MPI_ERROR' set, say:
ret = MPI_Probe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
Should it return an error? So should it return:
- ret = status.MPI_ERROR
- ret = MPI_ERROR_IN_STATUS
- ret = MPI_SUCCESS
Additionally, should it trigger the error handler on the communicator?
In Open MPI, it will always return MPI_SUCCESS (pml_ob1_iprobe.c:74), but it feels like this is wrong. I looked to the MPI standard for some insight, but could not find where it addresses the return code of MPI_Probe.
Can anyone shed some light on this topic for me?
Thanks,
Josh
------------------------------------
Joshua Hursey
Postdoctoral Research Associate
Oak Ridge National Laboratory
http://users.nccs.gov/~jjhursey
|