From 7d91b8efcd053304e5b0fb5afff06e151b2d4096 Mon Sep 17 00:00:00 2001 From: Alexander Karsakov Date: Thu, 28 Aug 2014 18:30:05 +0400 Subject: [PATCH] Removed redundant clFinish() after clEnqueueUnmapMemObject() sss --- modules/core/src/ocl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index 9192af8e87..68eee1f02b 100644 --- a/modules/core/src/ocl.cpp +++ b/modules/core/src/ocl.cpp @@ -3959,7 +3959,6 @@ public: u->markDeviceMemMapped(false); CV_Assert( (retval = clEnqueueUnmapMemObject(q, (cl_mem)u->handle, u->data, 0, 0, 0)) == CL_SUCCESS ); - CV_OclDbgAssert(clFinish(q) == CL_SUCCESS); u->data = 0; } else if( u->copyOnMap() && u->deviceCopyObsolete() )