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
Fix MPI_Comm_Split, to increment reference counter of the group, as it is shared...
[simgrid.git]
/
src
/
smpi
/
smpi_comm.c
diff --git
a/src/smpi/smpi_comm.c
b/src/smpi/smpi_comm.c
index
dac6ac3
..
db48e0f
100644
(file)
--- a/
src/smpi/smpi_comm.c
+++ b/
src/smpi/smpi_comm.c
@@
-153,6
+153,7
@@
MPI_Comm smpi_comm_split(MPI_Comm comm, int color, int key)
smpi_mpi_recv(&group_out, 1, MPI_PTR, 0, system_tag, comm, MPI_STATUS_IGNORE);
} /* otherwise, exit with group_out == NULL */
}
+ if(group_out)smpi_group_use(group_out);
return group_out ? smpi_comm_new(group_out) : MPI_COMM_NULL;
}