Memory Usage Analysis
Matthew Knepley
knepley at gmail.com
Fri Dec 12 10:56:38 CST 2008
These have changed to
PetscMemoryGetMaximumUsage<http://www.mcs.anl.gov/research/projects/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Sys/PetscMemoryGetMaximumUsage.html>
PetscMemorySetGetMaximumUsage<http://www.mcs.anl.gov/research/projects/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Sys/PetscMemorySetGetMaximumUsage.html>
Matt
On Fri, Dec 12, 2008 at 9:43 AM, Panyasantisuk Jarunan <
Jarunan.Panyasantisuk at eleves.ec-nantes.fr> wrote:
> Hello,
>
> I would like to do memory usage analysis by using these command.
>
> call PetscMemorySetGetMaximumUsage(ierr)
> call PetscMemoryGetMaximumUsage(mem,ierr)
>
> But when I compiled, it said
>
> undefined reference to `petscmemorysetgetmaximumusage_'
>
> I use Fortran and have included petsc.h, petscvec.h, petscmat.h, petscpc.h,
> petscksp.h, petscsys.h. In makefile I use ${PETSC_KSP_LIB}.
>
> So now I use the command "call PetscMemoryGetCurrentUsage(mem,ierr)" to get
> memory from 2 points. I do not know if it is efficient.
>
> Could you please give me some advice?
>
> Thank you
>
>
>
>
> --
> Jarunan PANYASANTISUK
> MSc. in Computational Mechanics
> Erasmus Mundus Master Program
> Ecole Centrale de Nantes
> 1, rue de la noë, 44321 NANTES, FRANCE
>
>
>
>
>
>
>
--
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20081212/1777911a/attachment.htm>
More information about the petsc-users
mailing list