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
Update copyright lines for 2023.
[simgrid.git]
/
src
/
smpi
/
colls
/
alltoall
/
alltoall-mvapich-scatter-dest.cpp
diff --git
a/src/smpi/colls/alltoall/alltoall-mvapich-scatter-dest.cpp
b/src/smpi/colls/alltoall/alltoall-mvapich-scatter-dest.cpp
index
15dd553
..
0a3cbc6
100644
(file)
--- a/
src/smpi/colls/alltoall/alltoall-mvapich-scatter-dest.cpp
+++ b/
src/smpi/colls/alltoall/alltoall-mvapich-scatter-dest.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013-202
0
. The SimGrid Team.
+/* Copyright (c) 2013-202
3
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-42,8
+42,7
@@
#define MV2_ALLTOALL_THROTTLE_FACTOR 4
#include "../colls_private.hpp"
#define MV2_ALLTOALL_THROTTLE_FACTOR 4
#include "../colls_private.hpp"
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
int alltoall__mvapich2_scatter_dest(const void *sendbuf,
int sendcount,
MPI_Datatype sendtype,
int alltoall__mvapich2_scatter_dest(const void *sendbuf,
int sendcount,
MPI_Datatype sendtype,
@@
-90,9
+89,9
@@
int alltoall__mvapich2_scatter_dest(const void *sendbuf,
/* FIXME: This should use the memory macros (there are storage
leaks here if there is an error, for example) */
/* FIXME: This should use the memory macros (there are storage
leaks here if there is an error, for example) */
-
MPI_Request
* reqarray = new MPI_Request[2 * bblock];
+
auto
* reqarray = new MPI_Request[2 * bblock];
-
MPI_Status
* starray = new MPI_Status[2 * bblock];
+
auto
* starray = new MPI_Status[2 * bblock];
for (ii=0; ii<comm_size; ii+=bblock) {
ss = comm_size-ii < bblock ? comm_size-ii : bblock;
for (ii=0; ii<comm_size; ii+=bblock) {
ss = comm_size-ii < bblock ? comm_size-ii : bblock;
@@
-133,5
+132,4
@@
int alltoall__mvapich2_scatter_dest(const void *sendbuf,
return (mpi_errno);
}
return (mpi_errno);
}
-}
-}
+} // namespace simgrid::smpi