This source file includes following definitions.
- ompi_coll_base_sendrecv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 #ifndef MCA_COLL_BASE_UTIL_EXPORT_H
22 #define MCA_COLL_BASE_UTIL_EXPORT_H
23
24 #include "ompi_config.h"
25
26 #include "mpi.h"
27 #include "ompi/mca/mca.h"
28 #include "ompi/datatype/ompi_datatype.h"
29 #include "ompi/request/request.h"
30 #include "ompi/mca/pml/pml.h"
31
32 BEGIN_C_DECLS
33
34
35
36
37
38
39 int ompi_coll_base_sendrecv_actual( const void* sendbuf, size_t scount,
40 ompi_datatype_t* sdatatype,
41 int dest, int stag,
42 void* recvbuf, size_t rcount,
43 ompi_datatype_t* rdatatype,
44 int source, int rtag,
45 struct ompi_communicator_t* comm,
46 ompi_status_public_t* status );
47
48
49
50
51
52
53
54
55 static inline int
56 ompi_coll_base_sendrecv( void* sendbuf, size_t scount, ompi_datatype_t* sdatatype,
57 int dest, int stag,
58 void* recvbuf, size_t rcount, ompi_datatype_t* rdatatype,
59 int source, int rtag,
60 struct ompi_communicator_t* comm,
61 ompi_status_public_t* status, int myid )
62 {
63 if ((dest == source) && (source == myid)) {
64 return (int) ompi_datatype_sndrcv(sendbuf, (int32_t) scount, sdatatype,
65 recvbuf, (int32_t) rcount, rdatatype);
66 }
67 return ompi_coll_base_sendrecv_actual (sendbuf, scount, sdatatype,
68 dest, stag,
69 recvbuf, rcount, rdatatype,
70 source, rtag, comm, status);
71 }
72
73
74
75
76
77
78
79 unsigned int ompi_mirror_perm(unsigned int x, int nbits);
80
81
82
83
84
85 int ompi_rounddown(int num, int factor);
86
87 END_C_DECLS
88 #endif