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 new entry in Release_Notes.
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_pmpi_op.cpp
diff --git
a/src/smpi/bindings/smpi_pmpi_op.cpp
b/src/smpi/bindings/smpi_pmpi_op.cpp
index
e90a6ba
..
e693e10
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_op.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_op.cpp
@@
-1,10
+1,11
@@
-/* Copyright (c) 2007-202
1
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-202
3
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "private.hpp"
#include "smpi_op.hpp"
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "private.hpp"
#include "smpi_op.hpp"
+#include "smpi_comm.hpp"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(smpi_pmpi);
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(smpi_pmpi);
@@
-24,13
+25,14
@@
int PMPI_Op_free(MPI_Op * op)
CHECK_MPI_NULL(1, MPI_OP_NULL, MPI_ERR_OP, *op)
if((*op)->is_predefined())
return MPI_ERR_OP;
CHECK_MPI_NULL(1, MPI_OP_NULL, MPI_ERR_OP, *op)
if((*op)->is_predefined())
return MPI_ERR_OP;
+ (*op)->mark_as_deleted();
simgrid::smpi::Op::unref(op);
*op = MPI_OP_NULL;
return MPI_SUCCESS;
}
int PMPI_Op_commutative(MPI_Op op, int* commute){
simgrid::smpi::Op::unref(op);
*op = MPI_OP_NULL;
return MPI_SUCCESS;
}
int PMPI_Op_commutative(MPI_Op op, int* commute){
- CHECK_
OP(1
)
+ CHECK_
MPI_NULL(1, MPI_OP_NULL, MPI_ERR_OP, op
)
CHECK_NULL(1, MPI_ERR_ARG, commute)
*commute = op->is_commutative();
return MPI_SUCCESS;
CHECK_NULL(1, MPI_ERR_ARG, commute)
*commute = op->is_commutative();
return MPI_SUCCESS;