[petsc-users] Attaching to gdb within screen
Satish Balay
balay at mcs.anl.gov
Wed Jun 22 10:02:26 CDT 2011
On Wed, 22 Jun 2011, Satish Balay wrote:
> On Wed, 22 Jun 2011, John Fettig wrote:
>
> > On Wed, Jun 22, 2011 at 9:54 AM, Satish Balay <balay at mcs.anl.gov> wrote:
> > > what pm do you use for MPICH startup? i.e what configure options did
> > > you use to build it?
> >
> > Satish,
> >
> > Here's what mpiexec --version reports that I used for the pertinent
> > configure options:
> >
> > '--enable-shared' '--with-mpe' '--enable-fast=-O2 -g'
> > '--with-device=ch3:nemesis' 'CC=gcc' 'CPP=cpp' 'F77=gfortran'
> > 'FC=gfortran' 'CXX=g++' '--disable-option-checking'
>
> Ok - I just did the following on 'CentOS release 5.6 (Final)' 32bit:
>
> install mpich2-1.3.2p1.tar.gz with:
> ./configure --enable-shared --enable-fast='-O2 -g' --with-device=ch3:nemesis CC=gcc CPP=cpp --disable-f77 --disable-fc --disable-option-checking --prefix=$HOME/mpich-install --disable-cxx
>
> install petsc-dev with:
> 1047 ./configure --with-mpi-dir=${HOME}/mpich-install --with-fc=0 --download-c-blas-lapack=1 --with-sowing=0 --with-c2html=0
>
> start screen on one terminal
> screen -S debug
>
> And run an example: src/ksp/ksp/examples/tutorials/ex2.c
> [balay at petsc tutorials]$ ~/mpich-install/bin/mpiexec -n 4 ./ex2 -start_in_debugger -debug_terminal "screen -X -S debug screen"
> [3]PETSC ERROR: PETSC: Attaching gdb to ./ex2 on pid 25786 on petsc.cs.iit.edu
> [0]PETSC ERROR: PETSC: Attaching gdb to ./ex2 on pid 25783 on petsc.cs.iit.edu
> [1]PETSC ERROR: PETSC: Attaching gdb to ./ex2 on pid 25784 on petsc.cs.iit.edu
> [2]PETSC ERROR: PETSC: Attaching gdb to ./ex2 on pid 25785 on petsc.cs.iit.edu
>
>
> And I see all 4 gdb sessions on the screen session.
I retry - and now I see 3 gdb sessions.. hm..
Satish
More information about the petsc-users
mailing list