What I am trying to do seems rather simple to me, but at the moment I have the feeling it is not possible with OpenCL:
我愿检查一下<代码>cl_mem。 物体在释放之前实际上有效:
cl_mem someimage;
if ( isvalid(someimage) ) clReleaseMemObject(someobject);
理由很简单: 如果我打电话clReleaseMemObject
而未启用someimage
,则我的方案坠毁。 我可以围绕这一呼吁提出一个<条码> ......捕获<>/代码”,但这似乎给我带来了一些 d。
电话如clGetImageInfo(近似值)
,如未经初步确定,也可坠毁。
How could I implement isvalid(someimage)
?
Many thanks for any hints, Jakob