On Tue, May 31, 2011 at 12:28 PM, Thomas Witkowski <span dir="ltr">&lt;<a href="mailto:Thomas.Witkowski@tu-dresden.de">Thomas.Witkowski@tu-dresden.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
And what would be a complicated way to get this info?<br></blockquote><div><br></div><div>1) Use PetscMallocGetCurrentUsage(PetscLogDouble *space) before creation and after setup without doing anything else in between</div>
<div><br></div><div>2) Walk the stack of all memory allocations, picking out those that have Mat functions in the stack</div><div><br></div><div>   Matt</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Thomas<br>
<br>
Zitat von Matthew Knepley &lt;<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>&gt;:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There is no simple way. There are possibly some complicated ways.<br>
<br>
  Matt<br>
<br>
On Tue, May 31, 2011 at 2:44 AM, Thomas Witkowski &lt;<br>
<a href="mailto:thomas.witkowski@tu-dresden.de" target="_blank">thomas.witkowski@tu-dresden.de</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a simple way to get the amount of memory that was allocated for a<br>
specific matrix?<br>
<br>
Thomas<br>
<br>
</blockquote>
<br>
<br>
<br>
--<br>
What most experimenters take for granted before they begin their experiments<br>
is infinitely more interesting than any results to which their experiments<br>
lead.<br>
-- Norbert Wiener<br>
<br>
</blockquote>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>