开发者

Is it possible to view the reference count for contexts and command queues in openCL?

I want to v开发者_运维百科iew the reference counters for these things so I can be sure that they were deleted. Is it possible?

It is mentioned here: http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clReleaseContext.html and http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clReleaseCommandQueue.html


It shouldn't be hard for you to follow your links to the functions that let you get information about contexts and command queues (including their reference counts), but it is never valid to check a reference count when it is already zero, because the object may have already been deallocated, invalidating your pointer and setting you up for a segfault if you try to dereference the pointer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜