[mpich-discuss] MPI comm attributes not working?

Jeff Hammond jeff.science at gmail.com
Mon Apr 4 23:56:50 CDT 2016

I am trying to understand how communicator attributes work, so I found
which contains a nice example (the code in

However, the posted output of this code is:

$ mpirun -np 1 ./comm-attr
In ibcast_copy: keyval = 10
In ibcast_delete: keyval = 10
In ibcast_delete: keyval = 10

Whereas I observe:

$ mpirun -np 1 ./a.out
In ibcast_copy: keyval = -1539309568
In ibcast_delete: keyval = -1539309568

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?

I am using MPICH git from November 2015, so I will git pull && ./autogen.sh
&& $CONFIGUREMAKEINSTALL and try again just to be sure.



$ mpirun --version
HYDRA build details:
    Version:                                 3.2
    Release Date:                            unreleased development copy
    CC:                              icc
    CXX:                             icpc
    F77:                             ifort
    F90:                             ifort
    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/openpa/src -D_REENTRANT
    Process Manager:                         pmi
    Launchers available:                     ssh rsh fork slurm ll lsf sge
manual persist
    Topology libraries available:            hwloc
    Resource management kernels available:   user slurm ll lsf sge pbs
    Checkpointing libraries available:
    Demux engines available:                 poll select

Jeff Hammond
jeff.science at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20160404/b157f344/attachment.html>
-------------- next part --------------
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:

More information about the discuss mailing list