如何阻止没有阻止参数的命令“clEnqueueFillImage”?
在函数“clEnqueueFillImage”的源代码中,它想要阻止该命令,但我不知道如何在没有阻止参数的情况下阻止它?
{
iResult = OCL_Flush(psCommandQueue);
if (iResult != CL_SUCCESS)
{
PVR_DPF((PVR_DBG_ERROR, "Failed implicit flush before blocking write."));
goto exit;
}
}```
In the source code of funciton "clEnqueueFillImage",it want to blocking the command but I don't figure out how to blocking it without the blocking argument?
{
iResult = OCL_Flush(psCommandQueue);
if (iResult != CL_SUCCESS)
{
PVR_DPF((PVR_DBG_ERROR, "Failed implicit flush before blocking write."));
goto exit;
}
}```
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与 OpenCL 中的许多其他函数一样,clEnqueueFillImage 具有事件输出参数。从文档中:
所以你可以简单地使用返回的事件:
clEnqueueFillImage
, like many other functions in OpenCL, has and event out parameter. From the documentation:So you could simply use the returned event: