[petsc-users] Examples of petsc with superlu
Barry Smith
bsmith at mcs.anl.gov
Fri Sep 13 10:46:19 CDT 2013
You need to manually run the example with -start_in_debugger noxterm and see why it crashes It could be if you compile another PETSC_ARCH without those optimization flags it may not crash. You can also run with valgrind http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind
Barry
On Sep 13, 2013, at 4:32 AM, fangfang <fangfang at iscas.ac.cn> wrote:
> Hi, I am trying to run the example ex52 in src/ksp/ksp/examples/tutorials with following command:
> make runex52_superlu
> but this generated the following error messages:
>
> 1c1,38
> < Norm of error < 1.e-12 iterations 1
> ---
> > [0]PETSC ERROR: ------------------------------------------------------------------------
> > [0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
> > [0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
> > [0]PETSC ERROR: or see http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind[0]PETSC ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS X to find memory corruption errors
> > [0]PETSC ERROR: likely location of problem given in stack below
> > [0]PETSC ERROR: --------------------- Stack Frames ------------------------------------
> > [0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,
> > [0]PETSC ERROR: INSTEAD the line number of the start of the function
> > [0]PETSC ERROR: is given.
> > [0]PETSC ERROR: [0] SuperLU:StatInit line 616 /home/lff/petsc-3.4.2/src/mat/impls/aij/seq/superlu/superlu.c
> > [0]PETSC ERROR: [0] MatGetFactor_seqaij_superlu line 580 /home/lff/petsc-3.4.2/src/mat/impls/aij/seq/superlu/superlu.c
> > [0]PETSC ERROR: [0] MatGetFactor line 3949 /home/lff/petsc-3.4.2/src/mat/interface/matrix.c
> > [0]PETSC ERROR: [0] PCFactorSetUpMatSolverPackage_Factor line 14 /home/lff/petsc-3.4.2/src/ksp/pc/impls/factor/factimpl.c
> > [0]PETSC ERROR: [0] PCFactorSetUpMatSolverPackage line 24 /home/lff/petsc-3.4.2/src/ksp/pc/impls/factor/factor.c
> > [0]PETSC ERROR: --------------------- Error Message ------------------------------------
> > [0]PETSC ERROR: Signal received!
> > [0]PETSC ERROR: ------------------------------------------------------------------------
> > [0]PETSC ERROR: Petsc Release Version 3.4.2, Jul, 02, 2013
> > [0]PETSC ERROR: See docs/changes/index.html for recent updates.
> > [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
> > [0]PETSC ERROR: See docs/index.html for manual pages.
> > [0]PETSC ERROR: ------------------------------------------------------------------------
> > [0]PETSC ERROR: ./ex52 on a arch-linux2-c-debug named RDCPS by lff Fri Sep 13 17:12:46 2013
> > [0]PETSC ERROR: Libraries linked from /home/lff/petsc-3.4.2/arch-linux2-c-debug/lib
> > [0]PETSC ERROR: Configure run at Thu Sep 12 11:08:01 2013
> > [0]PETSC ERROR: Configure options --with-cc=gcc --CFLAGS=-O3 --download-mpich --with-blas-lapack-dir=/home/lff/OpenBLAS-0.2.7/ --download-superlu=yes
> > [0]PETSC ERROR: ------------------------------------------------------------------------
> > [0]PETSC ERROR: User provided function() line 0 in unknown directory unknown file
> > application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0
> > [cli_0]: aborting job:
> > application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0
> >
> > ===================================================================================
> > = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
> > = EXIT CODE: 59
> > = CLEANING UP REMAINING PROCESSES
> > = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
> > ===================================================================================
> /home/lff/petsc-3.4.2/src/ksp/ksp/examples/tutorials
> Possible problem with with ex52, diffs above
>
> I have rebuilt petsc with superlu, does this require changing the code in ex52.c or superlu.c ,or is there something else that I am doing wrong?
> Thanks a lot.
>
>
> 2013-09-13
> fangfang
> research assistant
> Institute of Software China Acedemy of Sciences
> fax:010-61661632
More information about the petsc-users
mailing list