On Wed, Jul 4, 2012 at 8:17 AM, Alberto Cirillo <span dir="ltr"><<a href="mailto:cirilloalberto@gmail.com" target="_blank">cirilloalberto@gmail.com</a>></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">
<div>Hi,</div><div><br></div><div>I have a question about memory management in CUDA environment, using TAO toolkit.</div><div>When i create a vector with VECSEQCUSP, it's placed on GPU memory, transfered to CPU memory and returned back when operations are done (function evaluation is made by CPU).</div>

<div>If I have a VECSEQCUSP vector with dimension that causes the exhaustion of GPU's memory, there is a possibility to swap this vector on CPU's memory in order to avoid "bad alloc" error?</div><div>For example: if GPU memory is 4GB and CPU memory is 8GB and my working vector is 6GB, PETSc doesn't have a method to manage automatically the vector avoiding the crash?</div>
</blockquote><div><br></div><div>No. We would recommend that you run in parallel on multiple machines.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>Alberto</div>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <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>