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
[sonar] Use unsigned char* for smpi buffers.
[simgrid.git]
/
src
/
smpi
/
colls
/
smpi_coll.cpp
diff --git
a/src/smpi/colls/smpi_coll.cpp
b/src/smpi/colls/smpi_coll.cpp
index
4cd2155
..
56830ad
100644
(file)
--- a/
src/smpi/colls/smpi_coll.cpp
+++ b/
src/smpi/colls/smpi_coll.cpp
@@
-151,7
+151,7
@@
int Colls::scan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype data
// Send/Recv buffers to/from others
MPI_Request* requests = new MPI_Request[size - 1];
// Send/Recv buffers to/from others
MPI_Request* requests = new MPI_Request[size - 1];
-
void** tmpbufs = new void
*[rank];
+
unsigned char** tmpbufs = new unsigned char
*[rank];
int index = 0;
for (int other = 0; other < rank; other++) {
tmpbufs[index] = smpi_get_tmp_sendbuffer(count * dataext);
int index = 0;
for (int other = 0; other < rank; other++) {
tmpbufs[index] = smpi_get_tmp_sendbuffer(count * dataext);
@@
-209,7
+209,7
@@
int Colls::exscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype da
// Send/Recv buffers to/from others
MPI_Request* requests = new MPI_Request[size - 1];
// Send/Recv buffers to/from others
MPI_Request* requests = new MPI_Request[size - 1];
-
void** tmpbufs = new void
*[rank];
+
unsigned char** tmpbufs = new unsigned char
*[rank];
int index = 0;
for (int other = 0; other < rank; other++) {
tmpbufs[index] = smpi_get_tmp_sendbuffer(count * dataext);
int index = 0;
for (int other = 0; other < rank; other++) {
tmpbufs[index] = smpi_get_tmp_sendbuffer(count * dataext);