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
Concatenate nested namespaces (sonar).
[simgrid.git]
/
src
/
smpi
/
colls
/
allgatherv
/
allgatherv-ompi-bruck.cpp
diff --git
a/src/smpi/colls/allgatherv/allgatherv-ompi-bruck.cpp
b/src/smpi/colls/allgatherv/allgatherv-ompi-bruck.cpp
index d57fd3f633a1761f4d706496af500f55e15b24ca..8b089894f279d3acb39ed1cb1bbd0dc2a9aa4009 100644
(file)
--- a/
src/smpi/colls/allgatherv/allgatherv-ompi-bruck.cpp
+++ b/
src/smpi/colls/allgatherv/allgatherv-ompi-bruck.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013-20
17
. The SimGrid Team.
+/* Copyright (c) 2013-20
22
. 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
@@
-77,20
+77,19
@@
* [6] [6] [6] [6] [6] [6] [6]
*/
* [6] [6] [6] [6] [6] [6] [6]
*/
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
-int
Coll_allgatherv_ompi_bruck::allgatherv(
void *sbuf, int scount,
-
MPI_Datatype sdtype,
-
void *rbuf,
int *rcounts,
-
int *rdispls,
-
MPI_Datatype rdtype,
-
MPI_Comm comm)
+int
allgatherv__ompi_bruck(const
void *sbuf, int scount,
+ MPI_Datatype sdtype,
+
void *rbuf, const
int *rcounts,
+
const
int *rdispls,
+ MPI_Datatype rdtype,
+ MPI_Comm comm)
{
int sendto, recvfrom, blockcount, i;
unsigned int distance;
ptrdiff_t slb, rlb, sext, rext;
{
int sendto, recvfrom, blockcount, i;
unsigned int distance;
ptrdiff_t slb, rlb, sext, rext;
- char *tmpsend =
NULL, *tmprecv = NULL
;
+ char *tmpsend =
nullptr, *tmprecv = nullptr
;
MPI_Datatype new_rdtype = MPI_DATATYPE_NULL, new_sdtype = MPI_DATATYPE_NULL;
unsigned int size = comm->size();
MPI_Datatype new_rdtype = MPI_DATATYPE_NULL, new_sdtype = MPI_DATATYPE_NULL;
unsigned int size = comm->size();
@@
-174,6
+173,4
@@
int Coll_allgatherv_ompi_bruck::allgatherv(void *sbuf, int scount,
}
}
-
-}
-}
+} // namespace simgrid::smpi