On Sep 29, 2007, at 2:45 PM, Matthäus Sedlacek wrote:
> now i cannot find a function for testing if my send or recv
> operation was successfull.
> In C i did it this way:
>
> MPI_Test(&get_request, &flag, &status)
>
> But i cannot find anything in C++ ?
>
> Can anybody help me?
This one's a little odd. A C++ MPI request is an object (of type
MPI::Request). To test or wait on a single request, you call the Test
() or Wait() member functions of the object. Test() returns a bool
(true if complete, false otherwise) and Wait() returns a void. Then,
in a fit of non-symmetry, the {Test,Wait}_{any,all,some} functions
are static class functions and are take an array of request objects.
Good luck,
Brian
|