Commit ef9669ba authored by Andrey Pavlenko's avatar Andrey Pavlenko Committed by OpenCV Buildbot

Merge pull request #2506 from apavlenko:lbp_ocl_use_any_device

parents 7193762d d060d30f
......@@ -765,11 +765,8 @@ bool LBPEvaluator::read( const FileNode& node, Size _origWinSize )
nchannels = 1;
localSize = lbufSize = Size(0, 0);
if (ocl::haveOpenCL())
{
const ocl::Device& device = ocl::Device::getDefault();
if (device.isAMD() && !device.hostUnifiedMemory())
localSize = Size(8, 8);
}
localSize = Size(8, 8);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment