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
functioning MPI_Comm_get_name, MPI_Comm_set_name
[simgrid.git]
/
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
8916ec9
..
07a2904
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_comm.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_comm.cpp
@@
-49,6
+49,18
@@
int PMPI_Comm_get_name (MPI_Comm comm, char* name, int* len)
}
}
}
}
+int PMPI_Comm_set_name (MPI_Comm comm, char* name)
+{
+ if (comm == MPI_COMM_NULL) {
+ return MPI_ERR_COMM;
+ } else if (name == nullptr) {
+ return MPI_ERR_ARG;
+ } else {
+ comm->set_name(name);
+ return MPI_SUCCESS;
+ }
+}
+
int PMPI_Comm_group(MPI_Comm comm, MPI_Group * group)
{
if (comm == MPI_COMM_NULL) {
int PMPI_Comm_group(MPI_Comm comm, MPI_Group * group)
{
if (comm == MPI_COMM_NULL) {