I have a question about the .gpudata contract that I couldn't figure out by experimentation. If I construct gpuarrays with a call like
GPUArray(...,gpudata=xxx) is it sufficient that xxx.___int___() and xxx.free() be defined for things to work out correctly? That's what I gleaned from the documentation, but it didn't work when I tried it with a Python class that had those two methods. (I wanted to allocate memory on the device some other way.) ^L On Wed, May 5, 2010 at 9:25 PM, Andreas Klöckner <li...@informa.tiker.net>wrote: > On Sonntag 25 April 2010, gerald wrong wrote: > > Can I manually free GPUarray instances? > > In addition to Bogdan's comments (which are more likely to help you with > what you're seeing): If you must free the memory by hand, you can use > > ary.gpudata.free() > > to do so. > > HTH, > Andreas > > _______________________________________________ > PyCUDA mailing list > pyc...@host304.hostmonster.com > http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net > >
_______________________________________________ PyCUDA mailing list pyc...@host304.hostmonster.com http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net