[petsc-users] Memory usage of KSP (or any PETSc object)
Satish Balay
balay at mcs.anl.gov
Wed Sep 28 23:44:39 CDT 2011
On Wed, 28 Sep 2011, Mohamad M. Nasr-Azadani wrote:
> Thanks Jed for your detailed answer. That is more clear now.
> So, the most accurate way to find the size of a PETSc object would be to
> use
>
> *PetscMallocGetCurrentUsage()*
> *
> *
> before and after the block that creation and/or setting values happens? The
> reason that I am asking this is I am interested in finding out the size of
> KSP solver with BoomerAMG preconditioner. I assume the hypre package does
> not use PetscMalloc() and therefore the returned memory size could be not
> the most accurate?
Yes - the above call provides info regarding memory allocated by
PetscMalloc() - so memory allocated in externalpackages isn't captured
by it.
Satish
More information about the petsc-users
mailing list