X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f6db0e8487d57bfb4d5fe4d156ae12437c75d13b..cf507642628052d29599e6b7703e049ef28c0505:/src/smpi/bindings/smpi_pmpi_comm.cpp diff --git a/src/smpi/bindings/smpi_pmpi_comm.cpp b/src/smpi/bindings/smpi_pmpi_comm.cpp index 07a290470d..204207d6fd 100644 --- a/src/smpi/bindings/smpi_pmpi_comm.cpp +++ b/src/smpi/bindings/smpi_pmpi_comm.cpp @@ -221,6 +221,26 @@ int PMPI_Comm_set_attr (MPI_Comm comm, int comm_keyval, void *attribute_val) return PMPI_Attr_put(comm, comm_keyval, attribute_val); } +int PMPI_Comm_get_info(MPI_Comm comm, MPI_Info* info) +{ + if (comm == MPI_COMM_NULL) { + return MPI_ERR_WIN; + } else { + *info = comm->info(); + return MPI_SUCCESS; + } +} + +int PMPI_Comm_set_info(MPI_Comm comm, MPI_Info info) +{ + if (comm == MPI_COMM_NULL) { + return MPI_ERR_TYPE; + } else { + comm->set_info(info); + return MPI_SUCCESS; + } +} + int PMPI_Comm_delete_attr (MPI_Comm comm, int comm_keyval) { return PMPI_Attr_delete(comm, comm_keyval);