diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index 0f8fa7e61..1616267be 100644 --- a/modules/core/src/ocl.cpp +++ b/modules/core/src/ocl.cpp @@ -2268,8 +2268,8 @@ bool Kernel::run(int dims, size_t _globalsize[], size_t _localsize[], CV_Assert(_globalsize != 0); for (int i = 0; i < dims; i++) { - size_t val = _localsize ? _localsize[i] : - dims == 1 ? 64 : dims == 2 ? (16>>i) : dims == 3 ? (8>>(int)(i>0)) : 1; + size_t val = _localsize ? _localsize[i] : 1; + //dims == 1 ? 64 : dims == 2 ? (16>>i) : dims == 3 ? (8>>(int)(i>0)) : 1; CV_Assert( val > 0 ); total *= _globalsize[i]; globalsize[i] = ((_globalsize[i] + val - 1)/val)*val; diff --git a/modules/core/src/umatrix.cpp b/modules/core/src/umatrix.cpp index 33c193d2e..de8cd07be 100644 --- a/modules/core/src/umatrix.cpp +++ b/modules/core/src/umatrix.cpp @@ -286,8 +286,8 @@ void UMat::copySize(const UMat& m) UMat::~UMat() { - if( u && u->refcount > 0 ) - u->currAllocator->sync(u); + //if( u && u->refcount > 0 ) + // u->currAllocator->sync(u); release(); if( step.p != step.buf ) fastFree(step.p);