From OpenMPI docs: C ++ syntax
Request Comm::Irecv(void* buf, int count, const Datatype& datatype, int source, int tag) const
So, I think I'm doing something like:
MPI::Request req; req = MPI_Irecv(&ballChallenges[i], 2, MPI_INT, i, TAG_AT_BALL, MPI_COMM_WORLD);
But he complains:
error: too few arguments to function 'int MPI_Irecv(void*, int, MPI_Datatype, int, int, MPI_Comm, ompi_request_t**)'
It seems that ompi_request_t** missing ompi_request_t** , but is it not documented? I tried
MPI_Irecv(&ballChallenges[i], 2, MPI_INT, i, TAG_AT_BALL, MPI_COMM_WORLD, &req);
But with an error
error: cannot convert 'MPI::Request*' to 'ompi_request_t**' for argument '7' to 'int MPI_Irecv(void*, int, MPI_Datatype, int, int, MPI_Comm, ompi_request_t**)'
So, what about the ompi_request_t part?