Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
avoid breaking replay, handle MPI_OP_NULL case
authorAugustin Degomme <degomme@idpann.imag.fr>
Wed, 26 Jun 2013 14:35:53 +0000 (16:35 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Wed, 26 Jun 2013 14:35:53 +0000 (16:35 +0200)
src/smpi/smpi_mpi_dt.c

index bc03ee9..0db4d81 100644 (file)
@@ -1460,7 +1460,7 @@ MPI_Op smpi_op_new(MPI_User_function * function, int commute)
 
 int smpi_op_is_commute(MPI_Op op)
 {
 
 int smpi_op_is_commute(MPI_Op op)
 {
-  return op-> is_commute;
+  return (op==MPI_OP_NULL) ? 1 : op-> is_commute;
 }
 
 void smpi_op_destroy(MPI_Op op)
 }
 
 void smpi_op_destroy(MPI_Op op)