This source file includes following definitions.
- MPI_Recv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #include "ompi_config.h"
21
22 #include <stdio.h>
23
24 #include "opal_stdint.h"
25
26 #include "ompi/mpi/c/bindings.h"
27
28 int MPI_Recv(void *buf, int count, MPI_Datatype type, int source,
29 int tag, MPI_Comm comm, MPI_Status *status)
30 {
31 char typename[MPI_MAX_OBJECT_NAME], commname[MPI_MAX_OBJECT_NAME];
32 int len;
33 int rank;
34
35 PMPI_Comm_rank(MPI_COMM_WORLD, &rank);
36 PMPI_Type_get_name(type, typename, &len);
37 PMPI_Comm_get_name(comm, commname, &len);
38
39 fprintf(stderr, "MPI_RECV[%d]: buf %0" PRIxPTR " count %d datatype %s source %d tag %d comm %s\n",
40 rank, (uintptr_t) buf, count, typename, source, tag, commname);
41 fflush(stderr);
42
43 return PMPI_Recv(buf, count, type, source, tag, comm, status);
44 }