Skip to content

Commit

Permalink
Removed redundant clFinish() after clEnqueueUnmapMemObject()
Browse files Browse the repository at this point in the history
sss
  • Loading branch information
akarsakov committed Sep 3, 2014
1 parent 21f1a0e commit 7d91b8e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/core/src/ocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3959,7 +3959,6 @@ class OpenCLAllocator : public MatAllocator
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() )
Expand Down

0 comments on commit 7d91b8e

Please sign in to comment.