[petsc-dev] Error in PetscMallocValidate

John Mousel john.mousel at gmail.com
Tue Sep 24 10:39:22 CDT 2013


Matt,

The problem results with 1-4 cores. I have only observed the error when
using GAMG.
I do not get any error with:

-ksp_type bcgsl -lspaint_pc_type hypre -lspaint_pc_hypre_type boomeramg

or

-ksp_type bcgsl

I do get an error with

-ksp_type bcgsl -pc_type gamg -pc_gamg_threshold 0.01 -pc_gamg_type agg
-pc_gamg_agg_nsmooths 1 -pc_gamg_sym_graph true -ksp_monitor_true_residual

and

-ksp_type bcgsl -pc_type gamg -pc_gamg_threshold 0.01 -mg_levels_ksp_type
richardson -mg_levels_pc_type sor -mg_coarse_ksp_type richardson
-mg_coarse_pc_type sor -mg_coarse_pc_sor_its 5 -pc_gamg_type agg
-pc_gamg_agg_nsmooths 1 -pc_gamg_sym_graph true -ksp_monitor_true_residual

John


On Tue, Sep 24, 2013 at 9:58 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> John Mousel <john.mousel at gmail.com> writes:
>
> > I cloned a fresh repo and built from scratch. I'm seeing the same error I
> > previously reported with both intel and gnu compilers.
>
> Can you reproduce with a PETSc example or create a test case so that we
> can reproduce?
>
> > Also, I get warnings in MatSOR_SeqAIJ_Inode during the build.
> >
> > src/mat/impls/aij/seq/inode.c: In function ‘MatSOR_SeqAIJ_Inode’:
> > src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum2’ may be used
> > uninitialized in this function
> > src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum3’ may be used
> > uninitialized in this function
> > src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum4’ may be used
> > uninitialized in this function
> > src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum5’ may be used
> > uninitialized in this function
> > src/mat/impls/aij/seq/inode.c:2761: warning: ‘v2’ may be used
> uninitialized
> > in this function
> > src/mat/impls/aij/seq/inode.c:2761: warning: ‘v3’ may be used
> uninitialized
> > in this function
> > src/mat/impls/aij/seq/inode.c:2761: warning: ‘v4’ may be used
> uninitialized
> > in this function
> > src/mat/impls/aij/seq/inode.c:2761: warning: ‘v5’ may be used
> uninitialized
> > in this function
> > src/mat/impls/aij/seq/inode.c:2758: warning: ‘sum1’ may be used
> > uninitialized in this function
> > src/mat/impls/aij/seq/inode.c:2761: warning: ‘v1’ may be used
> uninitialized
> > in this function
>
> I don't think these warnings are correct, but I've seen them too when
> building in optimized mode with gcc-4.8, so they should be eliminated.
> As we occasionally do elsewhere, we should work around such warnings.
> Mark?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130924/f4cb1ca7/attachment.html>


More information about the petsc-dev mailing list