#include "private.hpp"
#include "smpi_comm.hpp"
+#include "smpi_info.hpp"
#include "src/smpi/include/smpi_actor.hpp"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(smpi_pmpi);
}
}
-int PMPI_Comm_set_name (MPI_Comm comm, char* name)
+int PMPI_Comm_set_name (MPI_Comm comm, const char* name)
{
if (comm == MPI_COMM_NULL) {
return MPI_ERR_COMM;
}
}
+int PMPI_Comm_dup_with_info(MPI_Comm comm, MPI_Info info, MPI_Comm * newcomm)
+{
+ if (comm == MPI_COMM_NULL) {
+ return MPI_ERR_COMM;
+ } else if (newcomm == nullptr) {
+ return MPI_ERR_ARG;
+ } else {
+ comm->dup_with_info(info, newcomm);
+ return MPI_SUCCESS;
+ }
+}
+
int PMPI_Comm_create(MPI_Comm comm, MPI_Group group, MPI_Comm * newcomm)
{
if (comm == MPI_COMM_NULL) {