36class ARCCORE_MESSAGEPASSINGMPI_EXPORT NoMpiProfiling
40 NoMpiProfiling() =
default;
41 virtual ~NoMpiProfiling() =
default;
43 ReturnType _ret(
int r)
45 return (ReturnType)(r);
50 ReturnType broadcast(
void* buffer,
int count, MPI_Datatype datatype,
int root, MPI_Comm comm)
final
52 return _ret(MPI_Bcast(buffer, count, datatype, root, comm));
55 ReturnType gather(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
56 int recvcount, MPI_Datatype recvtype,
int root, MPI_Comm comm)
final
58 return _ret(MPI_Gather(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, root, comm));
61 ReturnType gatherVariable(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
62 const int* recvcounts,
const int* displs, MPI_Datatype recvtype,
int root, MPI_Comm comm)
final
64 return _ret(MPI_Gatherv(sendbuf, sendcount, sendtype, recvbuf, recvcounts, displs, recvtype, root, comm));
67 ReturnType allGather(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
68 int recvcount, MPI_Datatype recvtype, MPI_Comm comm)
final
70 return _ret(MPI_Allgather(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm));
73 ReturnType allGatherVariable(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
74 const int* recvcounts,
const int* displs, MPI_Datatype recvtype, MPI_Comm comm)
final
76 return _ret(MPI_Allgatherv(sendbuf, sendcount, sendtype, recvbuf, recvcounts, displs, recvtype, comm));
79 ReturnType scatterVariable(
const void* sendbuf,
const int* sendcounts,
const int* displs,
80 MPI_Datatype sendtype,
void* recvbuf,
int recvcount, MPI_Datatype recvtype,
81 int root, MPI_Comm comm)
final
83 return _ret(MPI_Scatterv(sendbuf, sendcounts, displs, sendtype, recvbuf, recvcount, recvtype, root, comm));
86 ReturnType allToAll(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
void* recvbuf,
87 int recvcount, MPI_Datatype recvtype, MPI_Comm comm)
final
89 return _ret(MPI_Alltoall(sendbuf, sendcount, sendtype, recvbuf, recvcount, recvtype, comm));
92 ReturnType allToAllVariable(
const void* sendbuf,
const int* sendcounts,
const int* sdispls,
93 MPI_Datatype sendtype,
void* recvbuf,
const int* recvcounts,
94 const int* rdispls, MPI_Datatype recvtype, MPI_Comm comm)
final
96 return _ret(MPI_Alltoallv(sendbuf, sendcounts, sdispls, sendtype, recvbuf, recvcounts, rdispls, recvtype, comm));
99 ReturnType barrier(MPI_Comm comm)
final
101 return _ret(MPI_Barrier(comm));
104 ReturnType reduce(
const void* sendbuf,
void* recvbuf,
int count, MPI_Datatype datatype,
105 MPI_Op op,
int root, MPI_Comm comm)
final
107 return _ret(MPI_Reduce(sendbuf, recvbuf, count, datatype, op, root, comm));
110 ReturnType allReduce(
const void* sendbuf,
void* recvbuf,
int count, MPI_Datatype datatype,
111 MPI_Op op, MPI_Comm comm)
final
113 return _ret(MPI_Allreduce(sendbuf, recvbuf, count, datatype, op, comm));
116 ReturnType scan(
const void* sendbuf,
void* recvbuf,
int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
final
118 return _ret(MPI_Scan(sendbuf, recvbuf, count, datatype, op, comm));
121 ReturnType scanExclusive(
const void* sendbuf,
void* recvbuf,
int count, MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)
final
123 return _ret(MPI_Exscan(sendbuf, recvbuf, count, datatype, op, comm));
126 ReturnType sendRecv(
const void* sendbuf,
int sendcount, MPI_Datatype sendtype,
int dest,
127 int sendtag,
void* recvbuf,
int recvcount, MPI_Datatype recvtype,
128 int source,
int recvtag, MPI_Comm comm, MPI_Status* status)
final
130 return _ret(MPI_Sendrecv(sendbuf, sendcount, sendtype, dest, sendtag, recvbuf, recvcount, recvtype,
131 source, recvtag, comm, status));
134 ReturnType iSend(
const void* buf,
int count, MPI_Datatype datatype,
int dest,
int tag,
135 MPI_Comm comm, MPI_Request* request)
final
137 return _ret(MPI_Isend(buf, count, datatype, dest, tag, comm, request));
140 ReturnType send(
const void* buf,
int count, MPI_Datatype datatype,
int dest,
int tag, MPI_Comm comm)
final
142 return _ret(MPI_Send(buf, count, datatype, dest, tag, comm));
145 ReturnType iRecv(
void* buf,
int count, MPI_Datatype datatype,
int source,
int tag,
146 MPI_Comm comm, MPI_Request* request)
final
148 return _ret(MPI_Irecv(buf, count, datatype, source, tag, comm, request));
151 ReturnType recv(
void* buf,
int count, MPI_Datatype datatype,
int source,
int tag, MPI_Comm comm, MPI_Status* status)
final
153 return _ret(MPI_Recv(buf, count, datatype, source, tag, comm, status));
156 ReturnType test(MPI_Request* request,
int* flag, MPI_Status* status)
final
158 return _ret(MPI_Test(request, flag, status));
161 ReturnType probe(
int source,
int tag, MPI_Comm comm, MPI_Status* status)
final
163 return _ret(MPI_Probe(source, tag, comm, status));
166 ReturnType getCount(
const MPI_Status* status, MPI_Datatype datatype,
int* count)
final
168 return _ret(MPI_Get_count(status, datatype, count));
171 ReturnType wait(MPI_Request* request, MPI_Status* status)
final
173 return _ret(MPI_Wait(request, status));
176 ReturnType waitAll(
int count, MPI_Request* array_of_requests, MPI_Status* array_of_statuses)
final
178 return _ret(MPI_Waitall(count, array_of_requests, array_of_statuses));
181 ReturnType testSome(
int incount, MPI_Request* array_of_requests,
int* outcount,
182 int* array_of_indices, MPI_Status* array_of_statuses)
final
184 return _ret(MPI_Testsome(incount, array_of_requests, outcount, array_of_indices, array_of_statuses));
187 ReturnType waitSome(
int incount, MPI_Request* array_of_requests,
int* outcount,
188 int* array_of_indices, MPI_Status* array_of_statuses)
final
190 return _ret(MPI_Waitsome(incount, array_of_requests, outcount, array_of_indices, array_of_statuses));