[mpich-discuss] Trouble in getting the logging interface to work

Krishna Chaitanya kris.c1986 at gmail.com
Wed Mar 19 07:19:37 CDT 2008


Thanks for the help. I am facing an weird problem right now. To incorporate
the PERUSE component, I have modified the communicator data structure to
incude the PERUSE handles. The program executes as expected when compiled
without the "mpe=mpilog" flag.When I compile it with the mpe component, the
program gives this output :

Fatal error in MPI_Bcast: Invalid communicator, error stack:
MPI_Bcast(784): MPI_Bcast(buf=0x9260f98, count=1, MPI_INT, root=0,
MPI_COMM_WORLD) failed
MPI_Bcast(717): Invalid communicator

On tracing further, I understood this :
MPI_Init () (  log_mpi_core.c )
 -- >  PMPI_Init ( the communicator object is created here )
 -- >  MPE_Init_log ()
        -- > CLOG_Local_init()
              -- > CLOG_Buffer_init4write ()
                    -- > CLOG_Preamble_env_init()
                          -- >   MPI_Bcast ()  (bcast.c)
                                  -- > MPIR_Bcast ()
                                         -- >  MPIC_Recv ()  / MPIC_Send()
                                         -- >  MPIC_Wait()
                                      < Program crashes >
     The MPIC_Wait function is invoking the progress engine, which works
properly without the mpe component.
      Even within the progress engine, MPIDU_Sock_wait() and
MPIDI_CH3I_Progress_handle_sock_event() are executed a couple of times
before the program crashes in the MPIDU_Socki_handle_read() or the
MPIDU_Socki_handle_write() functions. ( The read() and the write() functions
work two times, I think)
     I am finding it very hard to reason why the program crashes with mpe.
Could you please suggest where I need to look at to sort this issue out?

Thanks,
Krishna Chaitanya K

On Wed, Mar 19, 2008 at 2:20 AM, Anthony Chan <chan at mcs.anl.gov> wrote:

>
>
> On Wed, 19 Mar 2008, Krishna Chaitanya wrote:
>
> > Hi,
> >          I tried configuring MPICH2 by doing :
> > ./configure --prefix=/home/kc/mpich-install/ --enable-mpe
> > --with-logging=SLOG  CC=gcc CFLAGS=-g   && make && make install
> >          It  flashed an error messaage saying :
> > onfigure: error: ./src/util/logging/SLOG does not exist.  Configure
> aborted
>
> The --with-logging is for MPICH2's internal logging, not MPE's logging.
> As what you did below is fine is fine.
> >
> >          After that, I tried :
> > ./configure --prefix=/home/kc/mpich-install/ --enable-mpe CC=gcc
> CFLAGS=-g
> > && make && make install
> >         The installation was normal, when I tried compiling an example
> > program by doing :
> > mpicc -mpilog -o sample  sample.c
> > cc1: error: unrecognized command line option "-mpilog"
>
> Do "mpicc -mpe=mpilog -o sample sample.c" instead.  For more details,
> see "mpicc -mpe=help" and see mpich2/src/mpe2/README.
>
> A.Chan
>
> >
> >          Can anyone please tell me what needs to be done to use the SLOG
> > logging format?
> >
> > Thanks,
> > Krishna Chaitanya K
> >
> >
> >
> >
> >
> > --
> > In the middle of difficulty, lies opportunity
> >
>
>


-- 
In the middle of difficulty, lies opportunity
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080319/438d30cf/attachment.htm>


More information about the mpich-discuss mailing list