Skip to content

ImageGuidedTherapyLab/ImageGuidedSolvers

Repository files navigation

PYCLEWN debug 
-------------

(1) start inferior_tty
(2) attach pyclewn to  inferior_tty

SCRGP2$ inferior_tty.py
'inferior_tty' two characters sequence commands:
    'C-a q' exit immediately
    'C-a c' close the slave pseudo terminal and exit after the gdb inferior has
            terminated
    'C-a a' send a 'C-a' character

/dev/pts/1 pseudo terminal has been created.
Set the tty for the program being debugged with the gdb commands:
set inferior-tty /dev/pts/1
set environment TERM = screen

SCRGP2$ pyclewn --tty=/dev/pts/1 -a '--args ./FocusUltraSoundModel -snes_monitor -da_vec_type cusp -snes_converged_reason -ksp_monitor -log_summary -pc_type jacobi -dm_mat_type seqaijcusp'




environment
-----------

SCRGP2$ module show  petsc/3.3/gcc-4.4.3-mpich2-1.2-epd-sm_20-dbg
-------------------------------------------------------------------
/usr/local/Modules/3.2.8/modulefiles/petsc/3.3/gcc-4.4.3-mpich2-1.2-epd-sm_20-dbg:

module-whatis            download petsc with
module-whatis            wget http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.3-p4.tar.gz
module-whatis            petsc configured with
module-whatis            config/configure.py --with-clanguage=C++ --with-mpi-dir=/usr --with-shared-libraries --with-cuda-arch=sm_20 --CFLAGS='-O0' --CXXFLAGS='-O0' --CUDAFLAGS='-O0' --with-etags=1 --with-mpi4py=0 --with-blas-lapack-lib=[/opt/apps/EPD/epd-7.3-1-rh5-x86_64/lib/libmkl_rt.so,/opt/apps/EPD/epd-7.3-1-rh5-x86_64/lib/libmkl_intel_thread.so,/opt/apps/EPD/epd-7.3-1-rh5-x86_64/lib/libmkl_core.so,/opt/apps/EPD/epd-7.3-1-rh5-x86_64/lib/libiomp5.so] --download-blacs --download-superlu_dist --download-triangle --download-parmetis --download-metis --download-mumps --download-scalapack --with-cuda=1 --with-cusp=1 --with-thrust=1 --with-cuda-dir=$CUDA_DIR  --with-sieve=1 --download-exodusii=yes --download-netcdf --with-boost=1 --with-boost-dir=/usr --download-fiat=yes --download-generator --download-scientificpython --with-matlab=1 --with-matlab-engine=1 --with-matlab-dir=$MATLAB_DIR
module-whatis            cd $PETSC_DIR/externalpackages/petsc4py-1.2; python setup.py build ; python setup.py install --home=$PETSC_DIR/$PETSC_ARCH
module           load epd/7.3.1
module           load cuda/4.2
setenv           PETSC_ARCH gcc-4.4.3-mpich2-1.2-epd-sm_20-dbg
setenv           PETSC_DIR /opt/apps/PETSC/petsc-3.3-p4
prepend-path     PYTHONPATH /opt/apps/PETSC/petsc-3.3-p4/gcc-4.4.3-mpich2-1.2-epd-sm_20-dbg/lib/python
prepend-path     PYTHONPATH /opt/apps/PETSC/petsc-3.3-p4/gcc-4.4.3-mpich2-1.2-epd-sm_20-dbg/lib/python2.7/site-packages
-------------------------------------------------------------------