diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index 0f8fa7e61f9ccc18e4baf7e37cc7be056dbe134e..1616267beeef5c91de76aa8dc567645c9d126c3a 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 33c193d2e490987fadb39483699ae665d4b0edae..de8cd07be08a2c3c840bceba57927b6c8fd58c75 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);