A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
non blocking collectives : array->vector
[simgrid.git]
/
src
/
smpi
/
colls
/
smpi_default_selector.cpp
diff --git
a/src/smpi/colls/smpi_default_selector.cpp
b/src/smpi/colls/smpi_default_selector.cpp
index
03c7d54
..
d5f5aac
100644
(file)
--- a/
src/smpi/colls/smpi_default_selector.cpp
+++ b/
src/smpi/colls/smpi_default_selector.cpp
@@
-77,13
+77,10
@@
int allgatherv__default(const void *sendbuf, int sendcount, MPI_Datatype sendtyp
{
MPI_Request request;
colls::iallgatherv(sendbuf, sendcount, sendtype, recvbuf, recvcounts, displs, recvtype, comm, &request, 0);
- MPI_Request* requests = request->get_nbc_requests();
- int count = request->get_nbc_requests_size();
- Request::waitall(count, requests, MPI_STATUS_IGNORE);
- for (int other = 0; other < count; other++) {
- Request::unref(&requests[other]);
- }
- delete[] requests;
+ auto requests = request->get_nbc_requests();
+ Request::waitall(requests.size(), &requests[0], MPI_STATUS_IGNORE);
+ for(auto& req: requests)
+ Request::unref(&req);
Request::unref(&request);
return MPI_SUCCESS;
}