Hi there,

aseem hegshetye <aseem.hegshe...@gmail.com> writes:
> Does pyopencl have inbuilt memory cleaning.  Does "pyopencl.enqueue_copy"
> clear corresponding memory ( memory allocated to the object that was copied
> to CPU via enqueue command)  from the GPU or is the data still in the GPU
> and gets cleaned only after some other process.
> Is there a "pyopencl.clean(gpu_id)"  like command in pyopencl that i can
> write in order to clear up everything on my GPU.
> Thanks

What do you mean by 'cleaning'? If "filling with zero" is what you mean,
then that's not done for you, but it's easy to do using e.g.

https://documen.tician.de/pyopencl/array.html#pyopencl.array.Array.fill

https://documen.tician.de/pyopencl/runtime_memory.html#pyopencl.enqueue_fill_buffer

HTH,
Andreas

_______________________________________________
PyOpenCL mailing list
PyOpenCL@tiker.net
https://lists.tiker.net/listinfo/pyopencl

Reply via email to