PetscMemoryGetMaximumUsage
Barry Smith
bsmith at mcs.anl.gov
Mon May 8 14:31:52 CDT 2006
Unfortunately that routine is not currently "wired"; getting actual
memory usage is not portable and is a pain.
You can use PetscMallocGetMaximumUsage() to see the maximum amount
of memory PETSc has allocated at any one time (in all the PETSc objects).
Barry
On Mon, 8 May 2006, Sh.M wrote:
> Hi,
>
> If I want to check the maximum amount of memory PETSc has used during a
> program run, is PetscMemoryGetMaximumUsage the function to use? I take it a
> call to this function will print out how much Process ID X has used, is this
> correct? So If I want to see the total maximum amount of memory used during
> a program run, each process should call this function and then I add them to
> get the total amount, correct?
>
> Thanks in advance.
>
> With best regards, Shaman Mahmoudi
>
>
More information about the petsc-users
mailing list