Merge pull request #2506 from apavlenko:lbp_ocl_use_any_device

pull/2508/merge
Andrey Pavlenko 11 years ago committed by OpenCV Buildbot
commit ef9669ba1a
  1. 7
      modules/objdetect/src/cascadedetect.cpp

@ -765,11 +765,8 @@ bool LBPEvaluator::read( const FileNode& node, Size _origWinSize )
nchannels = 1; nchannels = 1;
localSize = lbufSize = Size(0, 0); localSize = lbufSize = Size(0, 0);
if (ocl::haveOpenCL()) if (ocl::haveOpenCL())
{ localSize = Size(8, 8);
const ocl::Device& device = ocl::Device::getDefault();
if (device.isAMD() && !device.hostUnifiedMemory())
localSize = Size(8, 8);
}
return true; return true;
} }

Loading…
Cancel
Save