[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PetscMemoryGetMaximumUsage




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