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
Add mpi_get_accumulate call. And MPI_NO_OP operation
[simgrid.git]
/
src
/
smpi
/
smpi_op.cpp
diff --git
a/src/smpi/smpi_op.cpp
b/src/smpi/smpi_op.cpp
index
96dd941
..
5ef1068
100644
(file)
--- a/
src/smpi/smpi_op.cpp
+++ b/
src/smpi/smpi_op.cpp
@@
-188,6
+188,10
@@
static void replace_func(void *a, void *b, int *length, MPI_Datatype * datatype)
memcpy(b, a, *length * (*datatype)->size());
}
memcpy(b, a, *length * (*datatype)->size());
}
+static void no_func(void *a, void *b, int *length, MPI_Datatype * datatype)
+{
+}
+
#define CREATE_MPI_OP(name, func) \
static SMPI_Op mpi_##name (&(func) /* func */, true ); \
MPI_Op name = &mpi_##name;
#define CREATE_MPI_OP(name, func) \
static SMPI_Op mpi_##name (&(func) /* func */, true ); \
MPI_Op name = &mpi_##name;
@@
-205,6
+209,7
@@
CREATE_MPI_OP(MPI_BXOR, bxor_func);
CREATE_MPI_OP(MPI_MAXLOC, maxloc_func);
CREATE_MPI_OP(MPI_MINLOC, minloc_func);
CREATE_MPI_OP(MPI_REPLACE, replace_func);
CREATE_MPI_OP(MPI_MAXLOC, maxloc_func);
CREATE_MPI_OP(MPI_MINLOC, minloc_func);
CREATE_MPI_OP(MPI_REPLACE, replace_func);
+CREATE_MPI_OP(MPI_NO_OP, no_func);
namespace simgrid{
namespace smpi{
namespace simgrid{
namespace smpi{