37class ARCCORE_MESSAGEPASSINGMPI_EXPORT NoMpiProfiling
42 NoMpiProfiling() =
default;
43 virtual ~NoMpiProfiling() =
default;
45 ReturnType _ret(
int r)
47 return (ReturnType)(r);
53 ReturnType broadcast(
void* buffer,
int count, MPI_Datatype datatype,
int root, MPI_Comm comm)
final
55 return _ret(MPI_Bcast(buffer, count, datatype, root, comm));
58 ReturnType gather(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
59 int recvcount, MPI_Datatype recvtype,
int root, MPI_Comm comm)
final
61 return _ret(MPI_Gather(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, root, comm));
64 ReturnType gatherVariable(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
65 const int* recvcounts,
const int* displs, MPI_Datatype recvtype,
int root, MPI_Comm comm)
final
67 return _ret(MPI_Gatherv(sendbuf, sendcount, sendtype, recvbuf, recvcounts, displs, recvtype, root, comm));
70 ReturnType allGather(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
71 int recvcount, MPI_Datatype recvtype, MPI_Comm comm)
final
73 return _ret(MPI_Allgather(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm));
76 ReturnType allGatherVariable(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
77 const int* recvcounts,
const int* displs, MPI_Datatype recvtype, MPI_Comm comm)
final
79 return _ret(MPI_Allgatherv(sendbuf, sendcount, sendtype, recvbuf, recvcounts, displs, recvtype, comm));
82 ReturnType scatterVariable(
const void* sendbuf,
const int* sendcounts,
const int* displs,
83 MPI_Datatype sendtype,
void* recvbuf,
int recvcount, MPI_Datatype recvtype,
84 int root, MPI_Comm comm)
final
86 return _ret(MPI_Scatterv(sendbuf, sendcounts, displs, sendtype, recvbuf, recvcount, recvtype, root, comm));
89 ReturnType allToAll(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
90 int recvcount, MPI_Datatype recvtype, MPI_Comm comm)
final
92 return _ret(MPI_Alltoall(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm));
95 ReturnType allToAllVariable(
const void* sendbuf,
const int* sendcounts,
const int* sdispls,
96 MPI_Datatype sendtype,
void* recvbuf,
const int* recvcounts,
97 const int* rdispls, MPI_Datatype recvtype, MPI_Comm comm)
final
99 return _ret(MPI_Alltoallv(sendbuf, sendcounts, sdispls, sendtype, recvbuf, recvcounts, rdispls, recvtype, comm));
102 ReturnType barrier(MPI_Comm comm)
final
104 return _ret(MPI_Barrier(comm));
107 ReturnType reduce(
const void* sendbuf,
void* recvbuf,
int count, MPI_Datatype datatype,
108 MPI_Op op,
int root, MPI_Comm comm)
final
110 return _ret(MPI_Reduce(sendbuf, recvbuf, count, datatype, op, root, comm));
113 ReturnType allReduce(
const void* sendbuf,
void* recvbuf,
int count, MPI_Datatype datatype,
114 MPI_Op op, MPI_Comm comm)
final
116 return _ret(MPI_Allreduce(sendbuf, recvbuf, count, datatype, op, comm));
119 ReturnType scan(
const void* sendbuf,
void* recvbuf,
int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
final
121 return _ret(MPI_Scan(sendbuf, recvbuf, count, datatype, op, comm));
124 ReturnType scanExclusive(
const void* sendbuf,
void* recvbuf,
int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
final
126 return _ret(MPI_Exscan(sendbuf, recvbuf, count, datatype, op, comm));
129 ReturnType sendRecv(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
int dest,
130 int sendtag,
void* recvbuf,
int recvcount, MPI_Datatype recvtype,
131 int source,
int recvtag, MPI_Comm comm, MPI_Status* status)
final
133 return _ret(MPI_Sendrecv(sendbuf, sendcount, sendtype, dest, sendtag, recvbuf, recvcount, recvtype,
134 source, recvtag, comm, status));
137 ReturnType iSend(
const void* buf,
int count, MPI_Datatype datatype,
int dest,
int tag,
138 MPI_Comm comm, MPI_Request* request)
final
140 return _ret(MPI_Isend(buf, count, datatype, dest, tag, comm, request));
143 ReturnType send(
const void* buf,
int count, MPI_Datatype datatype,
int dest,
int tag, MPI_Comm comm)
final
145 return _ret(MPI_Send(buf, count, datatype, dest, tag, comm));
148 ReturnType iRecv(
void* buf,
int count, MPI_Datatype datatype,
int source,
int tag,
149 MPI_Comm comm, MPI_Request* request)
final
151 return _ret(MPI_Irecv(buf, count, datatype, source, tag, comm, request));
154 ReturnType recv(
void* buf,
int count, MPI_Datatype datatype,
int source,
int tag, MPI_Comm comm, MPI_Status* status)
final
156 return _ret(MPI_Recv(buf, count, datatype, source, tag, comm, status));
159 ReturnType test(MPI_Request* request,
int* flag, MPI_Status* status)
final
161 return _ret(MPI_Test(request, flag, status));
164 ReturnType probe(
int source,
int tag, MPI_Comm comm, MPI_Status* status)
final
166 return _ret(MPI_Probe(source, tag, comm, status));
169 ReturnType getCount(
const MPI_Status* status, MPI_Datatype datatype,
int* count)
final
171 return _ret(MPI_Get_count(status, datatype, count));
174 ReturnType wait(MPI_Request* request, MPI_Status* status)
final
176 return _ret(MPI_Wait(request, status));
179 ReturnType waitAll(
int count, MPI_Request* array_of_requests, MPI_Status* array_of_statuses)
final
181 return _ret(MPI_Waitall(count, array_of_requests, array_of_statuses));
184 ReturnType testSome(
int incount, MPI_Request* array_of_requests,
int* outcount,
185 int* array_of_indices, MPI_Status* array_of_statuses)
final
187 return _ret(MPI_Testsome(incount, array_of_requests, outcount, array_of_indices, array_of_statuses));
190 ReturnType waitSome(
int incount, MPI_Request* array_of_requests,
int* outcount,
191 int* array_of_indices, MPI_Status* array_of_statuses)
final
193 return _ret(MPI_Waitsome(incount, array_of_requests, outcount, array_of_indices, array_of_statuses));