提交 5fea17ff 编写于 作者: V Vadim Pisarevsky

still trying to fix failure in opencv_test_imgproc

上级 7626a8e8
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册