PUBLIC cl_int clRetainMemObject(cl_mem obj) { if (!obj) return CL_INVALID_MEM_OBJECT; obj->retain(); return CL_SUCCESS; }
cl_int clRetainMemObjectFCL (cl_mem memobj) { MSG(clRetainMemObjectFCL); if (!FreeOCL::is_valid(memobj)) return CL_INVALID_MEM_OBJECT; memobj->retain(); memobj->unlock(); return CL_SUCCESS; }