how can i free all memory on gpu after using it?

40 views
Skip to first unread message

zlff...@gmail.com

unread,
Feb 15, 2017, 3:23:56 AM2/15/17
to reikna
I want to free all memory with method like context.pop() in pycuda.

Bogdan Opanchuk

unread,
Feb 15, 2017, 7:31:21 AM2/15/17
to reikna
context.pop() is called when the Thread object is deleted, which in CPython will happen when the last reference to it is deleted (e.g. when it goes out of scope, or you execute `del thr`). Alternatively, you can call `thr.release()` explicitly.
Reply all
Reply to author
Forward
0 new messages