PDA

View Full Version : memorey object release and ndrange arguments



matrem
04-13-2010, 06:21 AM
In the specification we can read :


The function
cl_int clReleaseMemObject (cl_mem memobj) decrements the memobj reference count. After the memobj reference count becomes zero and commands queued for execution on a command-queue(s) that use memobj have finished, the memory object is deleted. ...

Does this "commands" include ndrange queueing with an argument that point to this memobj?

dbs2
04-13-2010, 08:23 AM
Yes. It will stay around until both you release it and the runtime is done with it.

matrem
04-13-2010, 08:53 AM
thanks, that's great.