use clflush replaces clfinish

This commit is contained in:
yao
2013-04-02 14:41:02 +08:00
parent 2a1cf23fab
commit f3254b28f2
4 changed files with 18 additions and 6 deletions

View File

@@ -354,6 +354,11 @@ namespace cv
return &(Context::getContext()->impl->clCmdQueue);
}
void finish()
{
clFinish(Context::getContext()->impl->clCmdQueue);
}
void queryDeviceInfo(DEVICE_INFO info_type, void* info)
{
static Info::Impl* impl = Context::getContext()->impl;
@@ -712,7 +717,7 @@ namespace cv
clReleaseEvent(event);
#endif
clFinish(clCxt->impl->clCmdQueue);
clFlush(clCxt->impl->clCmdQueue);
openCLSafeCall(clReleaseKernel(kernel));
}