来自 OpenMPI 文档:C++ 语法
Request Comm::Irecv(void* buf, int count, const Datatype&
datatype, int source, int tag) const
所以我想我会做类似的事情:
MPI::Request req;
req = MPI_Irecv(&ballChallenges[i], 2, MPI_INT, i, TAG_AT_BALL, MPI_COMM_WORLD);
但它抱怨:
error: too few arguments to function ‘int MPI_Irecv(void*, int, MPI_Datatype, int, int, MPI_Comm, ompi_request_t**)’
好像我失踪了ompi_request_t**
,但它没有记录?试过了
MPI_Irecv(&ballChallenges[i], 2, MPI_INT, i, TAG_AT_BALL, MPI_COMM_WORLD, &req);
但失败了
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**)’
那么这ompi_request_t
部分呢?