English 中文(简体)
核实cl物体是否有效
原标题:Check whether cl_mem object is valid
  • 时间:2012-05-07 11:35:41
  •  标签:
  • opencl

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

最佳回答
问题回答

暂无回答




相关问题
What s the perror() equivalent for error codes in OpenCL?

If I have something like: err = clEnqueueReadBuffer(cmdQueue, output, CL_TRUE, 0, sizeof(float) * data_sz, &results, 0, NULL, NULL); I d like to do: if (err != CL_SUCCESS){ perror("Read ...

Debugger for OpenCL [closed]

I am working on OpenCL. Does anyone know of a good debugger for OpenCL so that I can step into the OpenCL code and trace?

How do I test OpenCL on GPU when logged in remotely on Mac?

My OpenCL program can find the GPU device when I am logged in at the console, but not when I am logged in remotely with ssh. Further, if I run the program as root in the ssh session, the program can ...

OpenCL Texture Memory

I m fairly new to OpenCL so please bear with me. In the first iteration of my code, I used basic memory buffers for large datasets and declared them global. However now that I m looking to improve ...

Using Delphi to take advantage of GPGPU technology?

GPGPU is the principle of using the parallel processors on video cards for massive increases in performance. Does anyone have any ideas about using GPGPU in Delphi, using either OpenCL or CUDA? CUDA ...

热门标签