Memory Usage Analysis

Barry Smith bsmith at mcs.anl.gov
Fri Dec 12 11:52:28 CST 2008


    Sorry, the Fortran stub for this function is missing. If you are  
using
petsc-dev you can just do hg pull; hg update to get my fix.

    If you are using petsc-2.3.3 I have attached a replacement
src/sys/memory/ftn-custom/zmtrf.c You can just stick it in and run
make in that one directory.

    Barry

On Dec 12, 2008, at 9:43 AM, Panyasantisuk Jarunan 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
>
>
>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zmtrf.c
Type: application/octet-stream
Size: 1235 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20081212/90c2061e/attachment.obj>


More information about the petsc-users mailing list