X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0374ac8966d889dcae39e21787cf93c9530c41e8..a9c9083479c7a98cb890faad9d2f40e9a64ccd83:/src/smpi/smpi_pmpi.cpp diff --git a/src/smpi/smpi_pmpi.cpp b/src/smpi/smpi_pmpi.cpp index d14354c73e..64ff2a350d 100644 --- a/src/smpi/smpi_pmpi.cpp +++ b/src/smpi/smpi_pmpi.cpp @@ -270,6 +270,17 @@ int PMPI_Op_free(MPI_Op * op) } } +int PMPI_Op_commutative(MPI_Op op, int* commute){ + if (op == MPI_OP_NULL) { + return MPI_ERR_OP; + } else if (commute==nullptr){ + return MPI_ERR_ARG; + } else { + *commute = op->is_commutative(); + return MPI_SUCCESS; + } +} + int PMPI_Group_free(MPI_Group * group) { if (group == nullptr) {