<br><br>On Friday, 29 July 2016, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  Do you know if Nvidia provides an API to determine how much GPU memory has been currently allocated?</blockquote><div><br></div><div>Yes it does </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> If it does then that could easily be hooked up in same style as the PetscMemory...() routines for example PetscGPUMemory...(). If they don't provide an API then obviously there is no way to get that data.<br>
<br>
   Barry<br>
<br>
> On Jul 27, 2016, at 8:18 PM, Mark Adams <<a href="javascript:;" onclick="_e(event, 'cvml', 'mfadams@lbl.gov')">mfadams@lbl.gov</a>> wrote:<br>
><br>
> Note, I wanted to use this for a Petsc code  that uses GPUs but not through at Petsc.<br>
><br>
> So my case is a little odd and I did not expect support but I just wanted to check.<br>
><br>
> On Wednesday, July 27, 2016, Karl Rupp <<a href="javascript:;" onclick="_e(event, 'cvml', 'rupp@iue.tuwien.ac.at')">rupp@iue.tuwien.ac.at</a>> wrote:<br>
><br>
>    We (meanings someone) should add logging of GPU allocations separately.<br>
><br>
> Agreed. I'll do it (though not immediately, as there are other things with higher priority to make GPU support in PETSc more useful)<br>
><br>
> Best regards,<br>
> Karli<br>
><br>
><br>
><br>
> On Jul 27, 2016, at 1:41 PM, Matthew Knepley <<a href="javascript:;" onclick="_e(event, 'cvml', 'knepley@gmail.com')">knepley@gmail.com</a>> wrote:<br>
><br>
> No, although since we mirror storage you could get an idea if you broke out the GPU vecs into a separate stage.<br>
><br>
>     Matt<br>
><br>
> On Wed, Jul 27, 2016 at 9:05 AM, Mark Adams <<a href="javascript:;" onclick="_e(event, 'cvml', 'mfadams@lbl.gov')">mfadams@lbl.gov</a>> wrote:<br>
> Would/could PETSc memory usage methods (PetscMemoryGetMaximumUsage) pick up GPU memory usage?<br>
><br>
><br>
><br>
><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>
><br>
><br>
<br>
</blockquote>