Fascinating - thanks for spotting it! That code hasn't changed in a very long time, so I guess nobody has been looking at the name!
:-) Fixed in the trunk - will add it to the 1.4.2 list. On Jan 20, 2010, at 7:54 AM, Guillaume Thouvenin wrote: > Hello, > > When calling MPI_Comm_get_name() on the predefined communicator > MPI_COMM_PARENT after a call to MPI_Comm_spawn(), we are expecting the > name MPI_COMM_PARENT as stated into the MPI Standard 2.2. > > In practice, MPI_Comm_get_name() returns an empty string. As far as I > understand the problem, it seems that there is a bug into dyn_init(). > The name is set but the flags is not updated. The following patch fixes > the problem. > > Guillaume > --- > > diff --git a/ompi/mca/dpm/orte/dpm_orte.c b/ompi/mca/dpm/orte/dpm_orte.c > --- a/ompi/mca/dpm/orte/dpm_orte.c > +++ b/ompi/mca/dpm/orte/dpm_orte.c > @@ -965,6 +965,7 @@ static int dyn_init(void) > > /* Set name for debugging purposes */ > snprintf(newcomm->c_name, MPI_MAX_OBJECT_NAME, "MPI_COMM_PARENT"); > + newcomm->c_flags |= OMPI_COMM_NAMEISSET; > > return OMPI_SUCCESS; > } > _______________________________________________ > devel mailing list > de...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/devel