About clRetainMemObject I read in the OpenCL specification:
"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."
What does it mean exactly? I mean, It thought that clReleaseMemObject release the space needed by the object memory. Maybe I'm wrong. Which is the difference between both?