[petsc-users] Memory Accumulation
Barry Smith
bsmith at mcs.anl.gov
Thu Aug 30 18:31:12 CDT 2012
On Aug 30, 2012, at 6:28 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> On Thu, Aug 30, 2012 at 6:18 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> It is easy to simply using -malloc -malloc_debug -malloc_dump to see all the memory that was allocated and not freed.
>
> With petsc-3.3 and later, just export PETSC_OPTIONS=-malloc_test. It does the same as above in debug mode, but turns it off for optimized builds so you can just export it in your environment and forget about it.
Thanks. Added to my .profile and .bashrc
Barry
More information about the petsc-users
mailing list