[petsc-users] Memory allocated for a matrix
Matthew Knepley
knepley at gmail.com
Tue May 31 12:34:43 CDT 2011
On Tue, May 31, 2011 at 12:28 PM, Thomas Witkowski <
Thomas.Witkowski at tu-dresden.de> wrote:
> And what would be a complicated way to get this info?
>
1) Use PetscMallocGetCurrentUsage(PetscLogDouble *space) before creation and
after setup without doing anything else in between
2) Walk the stack of all memory allocations, picking out those that have Mat
functions in the stack
Matt
Thomas
>
> Zitat von Matthew Knepley <knepley at gmail.com>:
>
> There is no simple way. There are possibly some complicated ways.
>>
>> Matt
>>
>> On Tue, May 31, 2011 at 2:44 AM, Thomas Witkowski <
>> thomas.witkowski at tu-dresden.de> wrote:
>>
>> Is there a simple way to get the amount of memory that was allocated for
>>> a
>>> specific matrix?
>>>
>>> Thomas
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
--
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/20110531/1b5504f9/attachment.htm>
More information about the petsc-users
mailing list