still trying to fix failure in opencv_test_imgproc
This commit is contained in:
parent
7626a8e8de
commit
5fea17ff0d
@ -2268,8 +2268,8 @@ bool Kernel::run(int dims, size_t _globalsize[], size_t _localsize[],
|
|||||||
CV_Assert(_globalsize != 0);
|
CV_Assert(_globalsize != 0);
|
||||||
for (int i = 0; i < dims; i++)
|
for (int i = 0; i < dims; i++)
|
||||||
{
|
{
|
||||||
size_t val = _localsize ? _localsize[i] :
|
size_t val = _localsize ? _localsize[i] : 1;
|
||||||
dims == 1 ? 64 : dims == 2 ? (16>>i) : dims == 3 ? (8>>(int)(i>0)) : 1;
|
//dims == 1 ? 64 : dims == 2 ? (16>>i) : dims == 3 ? (8>>(int)(i>0)) : 1;
|
||||||
CV_Assert( val > 0 );
|
CV_Assert( val > 0 );
|
||||||
total *= _globalsize[i];
|
total *= _globalsize[i];
|
||||||
globalsize[i] = ((_globalsize[i] + val - 1)/val)*val;
|
globalsize[i] = ((_globalsize[i] + val - 1)/val)*val;
|
||||||
|
@ -286,8 +286,8 @@ void UMat::copySize(const UMat& m)
|
|||||||
|
|
||||||
UMat::~UMat()
|
UMat::~UMat()
|
||||||
{
|
{
|
||||||
if( u && u->refcount > 0 )
|
//if( u && u->refcount > 0 )
|
||||||
u->currAllocator->sync(u);
|
// u->currAllocator->sync(u);
|
||||||
release();
|
release();
|
||||||
if( step.p != step.buf )
|
if( step.p != step.buf )
|
||||||
fastFree(step.p);
|
fastFree(step.p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user