<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">My concern is the number of times the string "<span style="color:rgb(80,0,80)">ibcast_delete" appears in the output (2 vs 1)...</span><div><font color="#500050"><br></font></div><div><font color="#500050">Jeff<br></font><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 4, 2016 at 10:02 PM, Balaji, Pavan <span dir="ltr"><<a href="mailto:balaji@anl.gov" target="_blank">balaji@anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
You are printing a number that's generated by the MPI implementation.  It's value will be different for different MPI implementations.<br>
<br>
  -- Pavan<br>
<div><div class="h5"><br>
> On Apr 4, 2016, at 11:56 PM, Jeff Hammond <<a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a>> wrote:<br>
><br>
> I am trying to understand how communicator attributes work, so I found <a href="http://stackoverflow.com/questions/25198353/callbacks-provided-in-mpi-comm-create-keyval-are-not-called" rel="noreferrer" target="_blank">http://stackoverflow.com/questions/25198353/callbacks-provided-in-mpi-comm-create-keyval-are-not-called</a>, which contains a nice example (the code in <a href="http://stackoverflow.com/a/25205611/2189128" rel="noreferrer" target="_blank">http://stackoverflow.com/a/25205611/2189128</a>).<br>
><br>
> However, the posted output of this code is:<br>
><br>
> $ mpirun -np 1 ./comm-attr<br>
> In ibcast_copy: keyval = 10<br>
> In ibcast_delete: keyval = 10<br>
> In ibcast_delete: keyval = 10<br>
><br>
> Whereas I observe:<br>
><br>
> $ mpirun -np 1 ./a.out<br>
> In ibcast_copy: keyval = -1539309568<br>
> In ibcast_delete: keyval = -1539309568<br>
><br>
> Can anyone help me understand what the correct output of this program is?  If it is not what I am seeing, is this a bug in MPICH or am I doing something wrong?<br>
><br>
> I am using MPICH git from November 2015, so I will git pull && ./autogen.sh && $CONFIGUREMAKEINSTALL and try again just to be sure.<br>
><br>
> Thanks,<br>
><br>
> Jeff<br>
><br>
> $ mpirun --version<br>
> HYDRA build details:<br>
>     Version:                                 3.2<br>
>     Release Date:                            unreleased development copy<br>
>     CC:                              icc<br>
>     CXX:                             icpc<br>
>     F77:                             ifort<br>
>     F90:                             ifort<br>
>     Configure options:                       '--disable-option-checking' '--prefix=/opt/mpich/dev/intel/default' 'CC=icc' 'CXX=icpc' 'FC=ifort' 'F77=ifort' '--enable-cxx' '--enable-fortran' '--enable-threads=runtime' '--enable-g=dbg' '--with-pm=hydra' '--enable-wrapper-rpath' '--enable-static' '--enable-shared' '--cache-file=/dev/null' '--srcdir=../../../../src/pm/hydra' 'CFLAGS= -g -O2' 'LDFLAGS=' 'LIBS=-lpthread ' 'CPPFLAGS= -I/Users/jrhammon/Work/MPI/MPICH/git/build/src/mpl/include -I/Users/jrhammon/Work/MPI/MPICH/git/src/mpl/include -I/Users/jrhammon/Work/MPI/MPICH/git/src/openpa/src -I/Users/jrhammon/Work/MPI/MPICH/git/build/src/openpa/src -D_REENTRANT -I/Users/jrhammon/Work/MPI/MPICH/git/build/src/mpi/romio/include'<br>
>     Process Manager:                         pmi<br>
>     Launchers available:                     ssh rsh fork slurm ll lsf sge manual persist<br>
>     Topology libraries available:            hwloc<br>
>     Resource management kernels available:   user slurm ll lsf sge pbs cobalt<br>
>     Checkpointing libraries available:<br>
>     Demux engines available:                 poll select<br>
><br>
><br>
> --<br>
> Jeff Hammond<br>
> <a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a><br>
> <a href="http://jeffhammond.github.io/" rel="noreferrer" target="_blank">http://jeffhammond.github.io/</a><br>
</div></div>> _______________________________________________<br>
> discuss mailing list     <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
_______________________________________________<br>
discuss mailing list     <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>
</div></div></div>